summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/m4/misc.c2
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
OpenPOWER on IntegriCloud