Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nvi/ex don't use pathname directly as msgq()'s first ar...
details: https://anonhg.NetBSD.org/src/rev/a7d953ef7f9d
branches: trunk
changeset: 749268:a7d953ef7f9d
user: tnozaki <tnozaki%NetBSD.org@localhost>
date: Tue Nov 24 13:12:01 2009 +0000
description:
don't use pathname directly as msgq()'s first argument of format string.
diffstat:
dist/nvi/ex/ex_cscope.c | 6 +++---
dist/nvi/ex/ex_tag.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r 17e441146abb -r a7d953ef7f9d dist/nvi/ex/ex_cscope.c
--- a/dist/nvi/ex/ex_cscope.c Tue Nov 24 13:04:04 2009 +0000
+++ b/dist/nvi/ex/ex_cscope.c Tue Nov 24 13:12:01 2009 +0000
@@ -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;
diff -r 17e441146abb -r a7d953ef7f9d dist/nvi/ex/ex_tag.c
--- a/dist/nvi/ex/ex_tag.c Tue Nov 24 13:04:04 2009 +0000
+++ b/dist/nvi/ex/ex_tag.c Tue Nov 24 13:12:01 2009 +0000
@@ -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);
}
/*
Home |
Main Index |
Thread Index |
Old Index