calculator.c
branchcalculator-experiment
changeset 818 6f893a2224d8
parent 817 53db769e627c
child 820 fd001ff71c65
--- a/calculator.c	Mon Feb 08 03:59:12 2010 -0500
+++ b/calculator.c	Mon Feb 08 03:59:18 2010 -0500
@@ -539,7 +539,9 @@
 
     while ((ln = fgetln(io, &len)) != NULL)
     {
-        if ((len == 5) && (memcmp(ln, "quit\n", 5) == 0))
+        if (len == 1)
+            continue;
+        else if ((len == 5) && (memcmp(ln, "quit\n", 5) == 0))
             break;
         else if ((len == 2) && (memcmp(ln, "q\n", 2) == 0))
             break;