summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-08-08 11:55:08 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-08-08 11:55:08 +0000
commita66e96292320711767709e7151d30a500a902796 (patch)
treecddae37dabe5e0ef99ae23a77fbf4c2780ddd466
parent622b789d7e288a7717878632280ec52dd60d23dc (diff)
sizeof fname, not sizeof *fname
-rw-r--r--usr.bin/msgs/msgs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index 1d3f25d4eaf..a63bd906d44 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgs.c,v 1.22 2002/08/08 10:37:41 ho Exp $ */
+/* $OpenBSD: msgs.c,v 1.23 2002/08/08 11:55:07 ho Exp $ */
/* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: msgs.c,v 1.22 2002/08/08 10:37:41 ho Exp $";
+static char rcsid[] = "$OpenBSD: msgs.c,v 1.23 2002/08/08 11:55:07 ho Exp $";
#endif
#endif /* not lint */
@@ -794,7 +794,7 @@ ask(prompt)
in = nxtfld(inbuf);
if (*in) {
for (n=0;
- in[n] > ' ' && n < sizeof *fname - 1;
+ in[n] > ' ' && n < sizeof fname - 1;
n++) {
fname[n] = in[n];
}