aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);