summaryrefslogtreecommitdiff
path: root/editors/nvi-m17n/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'editors/nvi-m17n/patches/patch-ad')
-rw-r--r--editors/nvi-m17n/patches/patch-ad22
1 files changed, 22 insertions, 0 deletions
diff --git a/editors/nvi-m17n/patches/patch-ad b/editors/nvi-m17n/patches/patch-ad
new file mode 100644
index 00000000000..8eae1670618
--- /dev/null
+++ b/editors/nvi-m17n/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1 2001/10/25 07:46:29 itojun Exp $
+
+--- ../common/exf.c.orig Thu Oct 25 16:43:16 2001
++++ ../common/exf.c Thu Oct 25 16:43:52 2001
+@@ -887,7 +887,7 @@
+ * Note that this code is harmless if you're using libc 4.6.x.
+ */
+ if (LF_ISSET(FS_APPEND) && lseek(fd, (off_t)0, SEEK_END) < 0) {
+- msgq(sp, M_SYSERR, name);
++ msgq(sp, M_SYSERR, "%s", name);
+ return (1);
+ }
+ #endif
+@@ -1004,7 +1004,7 @@
+ *--s = '.';
+ }
+ }
+- msgq(sp, M_INFO, s);
++ msgq(sp, M_INFO, "%s", s);
+ if (nf)
+ FREE_SPACE(sp, p, 0);
+ return (0);