cmd/yacc: check for EOF in string constant in cpyact

Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
This commit is contained in:
Neven Sajko 2019-08-25 09:52:22 +00:00 committed by Russ Cox
parent 4a3f20bcee
commit d2fae53d17

View file

@ -2124,7 +2124,7 @@ swt:
string:
Bputrune(faction, c);
while(c = Bgetrune(finput)) {
while((c = Bgetrune(finput)) >= 0) {
if(c == '\\') {
Bputrune(faction, c);
c = Bgetrune(finput);