diff options
Diffstat (limited to 'editors/nvi-m17n/patches/patch-ac')
-rw-r--r-- | editors/nvi-m17n/patches/patch-ac | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/editors/nvi-m17n/patches/patch-ac b/editors/nvi-m17n/patches/patch-ac new file mode 100644 index 00000000000..545ade50c01 --- /dev/null +++ b/editors/nvi-m17n/patches/patch-ac @@ -0,0 +1,30 @@ +$NetBSD: patch-ac,v 1.1 2001/10/25 07:46:29 itojun Exp $ + +--- ../ex/ex_cscope.c.orig Mon Sep 16 04:59:30 1996 ++++ ../ex/ex_cscope.c Thu Oct 25 16:43:51 2001 +@@ -232,14 +232,14 @@ + * name regardless so that we can use it as a base for searches. + */ + if (stat(dname, &sb)) { +- msgq(sp, M_SYSERR, dname); ++ msgq(sp, M_SYSERR, "%s", dname); + return (1); + } + if (S_ISDIR(sb.st_mode)) { + (void)snprintf(path, sizeof(path), + "%s/%s", dname, CSCOPE_DBFILE); + if (stat(path, &sb)) { +- msgq(sp, M_SYSERR, path); ++ msgq(sp, M_SYSERR, "%s", path); + return (1); + } + dbname = CSCOPE_DBFILE; +@@ -762,7 +762,7 @@ + + io_err: if (feof(csc->from_fp)) + errno = EIO; +- msgq_str(sp, M_SYSERR, "%s", csc->dname); ++ msgq_str(sp, M_SYSERR, csc->dname, "%s"); + terminate(sp, csc, 0); + return (1); + } |