Module Name: src
Committed By: tnozaki
Date: Tue Nov 24 13:12:02 UTC 2009
Modified Files:
src/dist/nvi/ex: ex_cscope.c ex_tag.c
Log Message:
don't use pathname directly as msgq()'s first argument of format string.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/dist/nvi/ex/ex_cscope.c
cvs rdiff -u -r1.6 -r1.7 src/dist/nvi/ex/ex_tag.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/ex/ex_cscope.c
diff -u src/dist/nvi/ex/ex_cscope.c:1.4 src/dist/nvi/ex/ex_cscope.c:1.5
--- src/dist/nvi/ex/ex_cscope.c:1.4 Sun Jan 18 03:45:50 2009
+++ src/dist/nvi/ex/ex_cscope.c Tue Nov 24 13:12:01 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_cscope.c,v 1.4 2009/01/18 03:45:50 lukem Exp $ */
+/* $NetBSD: ex_cscope.c,v 1.5 2009/11/24 13:12:01 tnozaki Exp $ */
/*-
* Copyright (c) 1994, 1996
@@ -242,14 +242,14 @@
* name regardless so that we can use it as a base for searches.
*/
if (stat(np, &sb)) {
- msgq(sp, M_SYSERR, np);
+ msgq(sp, M_SYSERR, "%s", np);
return (1);
}
if (S_ISDIR(sb.st_mode)) {
(void)snprintf(path, sizeof(path),
"%s/%s", np, CSCOPE_DBFILE);
if (stat(path, &sb)) {
- msgq(sp, M_SYSERR, path);
+ msgq(sp, M_SYSERR, "%s", path);
return (1);
}
dbname = CSCOPE_DBFILE;
Index: src/dist/nvi/ex/ex_tag.c
diff -u src/dist/nvi/ex/ex_tag.c:1.6 src/dist/nvi/ex/ex_tag.c:1.7
--- src/dist/nvi/ex/ex_tag.c:1.6 Sun Jan 18 03:45:50 2009
+++ src/dist/nvi/ex/ex_tag.c Tue Nov 24 13:12:01 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_tag.c,v 1.6 2009/01/18 03:45:50 lukem Exp $ */
+/* $NetBSD: ex_tag.c,v 1.7 2009/11/24 13:12:01 tnozaki Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -244,7 +244,7 @@
if (tqp->current->msg) {
INT2CHAR(sp, tqp->current->msg, tqp->current->mlen + 1,
np, nlen);
- msgq(sp, M_INFO, np);
+ msgq(sp, M_INFO, "%s", np);
}
return (0);
}
@@ -820,7 +820,7 @@
if (tqp->current->msg) {
INT2CHAR(sp, tqp->current->msg, tqp->current->mlen + 1,
np, nlen);
- msgq(sp, M_INFO, np);
+ msgq(sp, M_INFO, "%s", np);
}
/*