don't use pathname directly as msgq()'s first argument of format string.
This commit is contained in:
parent
1b91587f84
commit
b95326704e
|
@ -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 @@ cscope_add(SCR *sp, EXCMD *cmdp, const CHAR_T *dname)
|
|||
* 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;
|
||||
|
|
|
@ -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 @@ ex_tag_prev(SCR *sp, EXCMD *cmdp)
|
|||
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 @@ tagq_push(SCR *sp, TAGQ *tqp, int new_screen, int force)
|
|||
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue