From a66e96292320711767709e7151d30a500a902796 Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Thu, 8 Aug 2002 11:55:08 +0000 Subject: sizeof fname, not sizeof *fname --- usr.bin/msgs/msgs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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]; } -- cgit v1.2.3