summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-vfs-vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-vfs-vfs.c')
-rw-r--r--misc/mc/files/patch-vfs-vfs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/mc/files/patch-vfs-vfs.c b/misc/mc/files/patch-vfs-vfs.c
new file mode 100644
index 000000000000..e8e132ba3c5c
--- /dev/null
+++ b/misc/mc/files/patch-vfs-vfs.c
@@ -0,0 +1,12 @@
+--- vfs/vfs.c.orig Thu Dec 26 08:21:43 2002
++++ vfs/vfs.c Tue Jun 15 03:15:09 2004
+@@ -637,8 +637,7 @@
+ {
+ const char *cwd = mc_return_cwd();
+
+- strncpy (buffer, cwd, size - 1);
+- buffer [size - 1] = 0;
++ g_strlcpy (buffer, cwd, size);
+ return buffer;
+ }
+