tcmd/yacc: check for EOF in string constant in cpyact - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d2fae53d17c120530a6d12facd8e0fc297331821
 (DIR) parent 4a3f20bceee7cef125f9a88bab32439f9fe4f773
 (HTM) 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:
         M src/cmd/yacc.c                      |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c
       t@@ -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);