summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c
blob: a71c0f102a7b5b242957340eec472d37a0ef598f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

$FreeBSD$

--- eel/eel-vfs-extensions.c    2001/12/20 13:41:21 1.1
+++ eel/eel-vfs-extensions.c    2001/12/20 13:47:36
@@ -116,7 +116,8 @@
 
    /* Return the file. */
    *file_size = total_bytes_read;
-   *file_contents = g_realloc (buffer, total_bytes_read);
+   *file_contents = g_realloc (buffer, total_bytes_read + 1);
+   (*file_contents)[total_bytes_read] = '\0';
    return GNOME_VFS_OK;
 }