plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit d2fae53d17c120530a6d12facd8e0fc297331821
parent 4a3f20bceee7cef125f9a88bab32439f9fe4f773
Author: Neven Sajko <nsajko@gmail.com>
Date:   Sun, 25 Aug 2019 09:52:22 +0000

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

Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c

Diffstat:
Msrc/cmd/yacc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c @@ -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);