From d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 19 Dec 1994 00:26:20 +0000 Subject: Skip nulls in putback to don't confuse with EOFs --- usr.bin/m4/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/m4/misc.c') diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 916edba..5f12e47 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -77,6 +77,8 @@ int c; { if (c == EOF) c = 0; + else if (c == 0) + return; if (bp < endpbb) *bp++ = c; else -- cgit v1.1