Module Name: src
Committed By: bouyer
Date: Sat Nov 28 15:42:29 UTC 2009
Modified Files:
src/dist/nvi/common [netbsd-5]: exf.c
Log Message:
Pull up following revision(s) (requested by tnozaki in ticket #1145):
dist/nvi/common/exf.c: revision 1.4
fix format string bug, filename may contain % character, don't use it
as format string.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2.6.2 -r1.1.1.2.6.3 src/dist/nvi/common/exf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/nvi/common/exf.c
diff -u src/dist/nvi/common/exf.c:1.1.1.2.6.2 src/dist/nvi/common/exf.c:1.1.1.2.6.3
--- src/dist/nvi/common/exf.c:1.1.1.2.6.2 Tue Jan 20 02:51:13 2009
+++ src/dist/nvi/common/exf.c Sat Nov 28 15:42:29 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: exf.c,v 1.1.1.2.6.2 2009/01/20 02:51:13 snj Exp $ */
+/* $NetBSD: exf.c,v 1.1.1.2.6.3 2009/11/28 15:42:29 bouyer Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -945,7 +945,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
@@ -1064,7 +1064,7 @@
*--s = '.';
}
}
- msgq(sp, M_INFO, s);
+ msgq(sp, M_INFO, "%s", s);
if (nf)
FREE_SPACE(sp, p, 0);
return (0);