summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-vfs-fish.c
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-06-14 20:56:00 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-06-14 20:56:00 +0000
commit694ecd186a9b12f5115b130cb96dc3428c8dc76b (patch)
treef1a6e73aac755d8e00dfb5f10ac6a3618d9becf9 /misc/mc/files/patch-vfs-fish.c
parent- Strip binaries (diff)
- Fix CAN-2004-0226, CAN-2004-0231, CAN-2004-0232.
- Do not use :: in patch file names. - Patch for CAN-2003-1023 is now contained in patch-vfs-direntry.c. - Bump PORTREVISION. Submitted by: Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'misc/mc/files/patch-vfs-fish.c')
-rw-r--r--misc/mc/files/patch-vfs-fish.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/mc/files/patch-vfs-fish.c b/misc/mc/files/patch-vfs-fish.c
new file mode 100644
index 000000000000..634580bacce0
--- /dev/null
+++ b/misc/mc/files/patch-vfs-fish.c
@@ -0,0 +1,21 @@
+--- vfs/fish.c.orig Thu Dec 26 08:21:43 2002
++++ vfs/fish.c Tue Jun 15 03:15:09 2004
+@@ -96,8 +96,7 @@
+ if (strncmp(answer, "### ", 4)) {
+ was_garbage = 1;
+ if (string_buf) {
+- strncpy(string_buf, answer, string_len - 1);
+- *(string_buf + string_len - 1) = 0;
++ g_strlcpy(string_buf, answer, string_len);
+ }
+ } else return decode_reply(answer+4, was_garbage);
+ }
+@@ -668,7 +667,7 @@
+ {
+ int r;
+
+- r = command (me, super, WAIT_REPLY, cmd);
++ r = command (me, super, WAIT_REPLY, "%s", cmd);
+ vfs_add_noncurrent_stamps (&vfs_fish_ops, (vfsid) super, NULL);
+ if (r != COMPLETE) ERRNOR (E_REMOTE, -1);
+ if (flags & OPT_FLUSH)