summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c')
-rw-r--r--x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c b/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c
new file mode 100644
index 000000000..0a95f2fb1
--- /dev/null
+++ b/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c
@@ -0,0 +1,15 @@
+
+$FreeBSD: ports/x11-toolkits/eel2/files/patch-eel::eel-vfs-extensions.c,v 1.3 2003/02/07 18:42:19 marcus Exp $
+
+--- 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;
+ }
+