diff options
author | ache <ache@FreeBSD.org> | 1994-12-19 00:26:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-19 00:26:20 +0000 |
commit | d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4 (patch) | |
tree | da361a8973c836b3480716ad1840022d44172c72 /usr.bin/m4/misc.c | |
parent | 05d48b0c7e3a1b9e98cc98662ad97b6a01811ebd (diff) | |
download | FreeBSD-src-d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4.zip FreeBSD-src-d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4.tar.gz |
Skip nulls in putback to don't confuse with EOFs
Diffstat (limited to 'usr.bin/m4/misc.c')
-rw-r--r-- | usr.bin/m4/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |