diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/yacc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c index 32698c2a..bd3f6aa4 100644 --- a/src/cmd/yacc.c +++ b/src/cmd/yacc.c @@ -1805,6 +1805,8 @@ begin: } } else return c; + if(c == Beof) + return ENDFILE; Bungetrune(finput); } tokname[i] = 0; |