summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-vfs-mcserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-vfs-mcserv.c')
-rw-r--r--misc/mc/files/patch-vfs-mcserv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/mc/files/patch-vfs-mcserv.c b/misc/mc/files/patch-vfs-mcserv.c
new file mode 100644
index 000000000000..44e3fdd1b894
--- /dev/null
+++ b/misc/mc/files/patch-vfs-mcserv.c
@@ -0,0 +1,11 @@
+--- vfs/mcserv.c.orig Sun Dec 8 07:12:30 2002
++++ vfs/mcserv.c Tue Jun 15 03:15:09 2004
+@@ -582,7 +582,7 @@
+ int n;
+
+ rpc_get (msock, RPC_STRING, &file, RPC_END);
+- n = readlink (file, buffer, 2048);
++ n = readlink (file, buffer, 2048 - 1);
+ send_status (n, errno);
+ if (n >= 0) {
+ buffer[n] = 0;