aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeven Sajko <nsajko@gmail.com>2019-08-25 09:52:22 +0000
committerRuss Cox <rsc@golang.org>2020-01-13 14:41:28 -0500
commitd2fae53d17c120530a6d12facd8e0fc297331821 (patch)
treeb627430cc87f3f3c612a1fefc47ffc5f6991848a /src
parent4a3f20bceee7cef125f9a88bab32439f9fe4f773 (diff)
downloadplan9port-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')
-rw-r--r--src/cmd/yacc.c2
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);