diff options
author | Neven Sajko <nsajko@gmail.com> | 2019-08-25 09:52:22 +0000 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-01-13 14:41:28 -0500 |
commit | d2fae53d17c120530a6d12facd8e0fc297331821 (patch) | |
tree | b627430cc87f3f3c612a1fefc47ffc5f6991848a /src/cmd/yacc.c | |
parent | 4a3f20bceee7cef125f9a88bab32439f9fe4f773 (diff) | |
download | plan9port-d2fae53d17c120530a6d12facd8e0fc297331821.tar.gz plan9port-d2fae53d17c120530a6d12facd8e0fc297331821.tar.bz2 plan9port-d2fae53d17c120530a6d12facd8e0fc297331821.zip |
cmd/yacc: check for EOF in string constant in cpyact
Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
Diffstat (limited to 'src/cmd/yacc.c')
-rw-r--r-- | src/cmd/yacc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c index 5db36d04..7558bf3b 100644 --- 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); |