]> diplodocus.org Git - nmh/commitdiff
I missed one spot in getln() where the new quoting flag needs to be cleared.
authorLyndon Nerenberg <lyndon@orthanc.ca>
Thu, 10 Apr 2014 11:00:18 +0000 (04:00 -0700)
committerLyndon Nerenberg <lyndon@orthanc.ca>
Thu, 10 Apr 2014 11:00:18 +0000 (04:00 -0700)
uip/prompter.c

index b43d0c74ca592b3beeb6ec13e9bbbd6379dcf806..304c9a5d7c01b80e17fb0a718acd7bd3b914a46d 100644 (file)
@@ -358,6 +358,7 @@ getln (char *buffer, int n)
            case '\n': 
                if (quoting) {
                    *(cp - 1) = c;
            case '\n': 
                if (quoting) {
                    *(cp - 1) = c;
+                   quoting = 0;
                    wtuser = 0;
                    return 1;
                }
                    wtuser = 0;
                    return 1;
                }