diff options
Diffstat (limited to 'devel/gnomevfs2/files')
-rw-r--r-- | devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c b/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c index 1bf100bf0..21ce33515 100644 --- a/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c +++ b/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c @@ -1,5 +1,5 @@ ---- libgnomevfs/xdgmime.c.orig Tue Jan 13 01:20:05 2004 -+++ libgnomevfs/xdgmime.c Tue Jan 13 01:20:35 2004 +--- libgnomevfs/xdgmime.c.orig Wed Jan 7 13:44:02 2004 ++++ libgnomevfs/xdgmime.c Tue Jan 13 01:55:41 2004 @@ -97,7 +97,7 @@ xdg_data_dirs = getenv ("XDG_DATA_DIRS"); @@ -9,13 +9,14 @@ ptr = xdg_data_dirs; -@@ -121,7 +121,8 @@ +@@ -121,8 +121,9 @@ len = end_ptr - ptr; else len = end_ptr - ptr + 1; - dir = malloc (len); + dir = malloc (len + 1); -+ memset (dir, 0, len + 1); strncpy (dir, ptr, len); ++ dir[len] = '\0'; _xdg_mime_init_from_directory (dir); free (dir); + |