summaryrefslogtreecommitdiff
path: root/usr.bin/mg/cscope.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-29 02:07:50 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-29 02:07:50 +0000
commit68eb93e531c311f1c1a1c036d65026529a234efe (patch)
tree5c6ef9441e8fbd04342114d2d8b3966a8372c4df /usr.bin/mg/cscope.c
parent221d803eec07d29e901837eee6eed241539b5c67 (diff)
Mark eread(), veread(), and eformat() as printf-like and
Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf) ok millert@ lum@
Diffstat (limited to 'usr.bin/mg/cscope.c')
-rw-r--r--usr.bin/mg/cscope.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/cscope.c b/usr.bin/mg/cscope.c
index 6b1db8d81eb..3a28835744e 100644
--- a/usr.bin/mg/cscope.c
+++ b/usr.bin/mg/cscope.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cscope.c,v 1.10 2015/09/26 21:51:58 jasper Exp $ */
+/* $OpenBSD: cscope.c,v 1.11 2015/09/29 02:07:49 guenther Exp $ */
/*
* This file is in the public domain.
@@ -408,7 +408,7 @@ do_cscope(int i)
if (curtoken(0, 1, pattern) == FALSE)
return (FALSE);
- p = eread(csprompt[i], pattern, MAX_TOKEN, EFNEW | EFCR | EFDEF);
+ p = eread("%s", pattern, MAX_TOKEN, EFNEW | EFCR | EFDEF, csprompt[i]);
if (p == NULL)
return (ABORT);
else if (p[0] == '\0')