File mdbtools-off_by_one.patch of Package mdbtools

basename is char[33]

--- src/gmdb2/file.c
+++ src/gmdb2/file.c
@@ -99,7 +99,7 @@
 	} else {
 		strncpy(basename,file_path,32);
 	}
-	basename[33]='\0';
+	basename[32]='\0';
 	gnome_config_set_string("/gmdb/RecentFiles/menu_recent1.basename", basename);
 	gnome_config_set_string("/gmdb/RecentFiles/menu_recent1.filepath", file_path);
 	gnome_config_sync();
openSUSE Build Service is sponsored by