diff options
author | 2001-03-05 15:09:20 +0000 | |
---|---|---|
committer | 2001-03-05 15:09:20 +0000 | |
commit | 8e90458129ec89cfb79b6b9154f781baff5c24d0 (patch) | |
tree | 382cb90b756e4e23e12608097b3db4255038a102 /usr.bin/m4/main.c | |
parent | doc new ones (diff) | |
download | wireguard-openbsd-8e90458129ec89cfb79b6b9154f781baff5c24d0.tar.xz wireguard-openbsd-8e90458129ec89cfb79b6b9154f781baff5c24d0.zip |
inspect MUST take an int to handle EOF issues correctly on unsigned char
machines.
Problem reported by naddy.
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r-- | usr.bin/m4/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index b1e56a32769..771afc878a5 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.38 2001/03/02 00:25:24 aaron Exp $ */ +/* $OpenBSD: main.c,v 1.39 2001/03/05 15:09:20 espie Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.38 2001/03/02 00:25:24 aaron Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.39 2001/03/05 15:09:20 espie Exp $"; #endif #endif /* not lint */ @@ -162,7 +162,7 @@ static void dump_stack __P((struct position *, int)); static void macro __P((void)); static void initkwds __P((void)); -static ndptr inspect __P((char, char *)); +static ndptr inspect __P((int, char *)); static int do_look_ahead __P((int, const char *)); static void enlarge_stack __P((void)); @@ -492,7 +492,7 @@ outputstr(s) */ static ndptr inspect(c, tp) - char c; + int c; char *tp; { char *name = tp; |