summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-src-cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-src-cmd.c')
-rw-r--r--misc/mc/files/patch-src-cmd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-cmd.c b/misc/mc/files/patch-src-cmd.c
new file mode 100644
index 000000000000..f92c6ca97c31
--- /dev/null
+++ b/misc/mc/files/patch-src-cmd.c
@@ -0,0 +1,11 @@
+--- src/cmd.c.orig Wed Feb 5 21:54:33 2003
++++ src/cmd.c Tue Jun 15 03:15:09 2004
+@@ -1132,7 +1132,7 @@
+
+ q = g_strdup_printf (_(" Symlink `%s\' points to: "), name_trunc (p, 32));
+
+- i = readlink (p, buffer, MC_MAXPATHLEN);
++ i = readlink (p, buffer, MC_MAXPATHLEN - 1);
+ if (i > 0) {
+ buffer [i] = 0;
+ dest = input_expand_dialog (_(" Edit symlink "), q, buffer);