Description: Write \0 at the end of buffer, not the byte after
 This fixes a build warning.
 Previous versions gets their next variable on the stack reset (that would
 be variable i). Probably not a big deal, but you never know what CC
 optimizers might do.
Author: Jean-Michel Vourgère <jmv_deb@nirgal.com>
Origin: https://github.com/brianb/mdbtools/commit/2ffd30a8580954579ad1957dc80c157b14306215
Forwarded: https://github.com/brianb/mdbtools/commit/2ffd30a8580954579ad1957dc80c157b14306215
Reviewed-By: Jean-Michel Vourgère <jmv_deb@nirgal.com>
Last-Update: 2012-06-30

--- mdbtools-0.7.orig/src/gmdb2/file.c
+++ mdbtools-0.7/src/gmdb2/file.c
@@ -107,7 +107,7 @@ gmdb_file_add_recent(gchar *file_path)
 	} 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();
