Fix possible infinite loop on invalid input
authorhpa <hpa>
Thu, 16 Dec 2004 08:18:16 +0000 (08:18 +0000)
committerhpa <hpa>
Thu, 16 Dec 2004 08:18:16 +0000 (08:18 +0000)
parsecmd.inc

index f4c30a5..afea465 100644 (file)
@@ -42,6 +42,7 @@ getcommand:
                push ebx
                call getc
                pop ebx
+               jc .eof
                cmp al,' '              ; Whitespace
                jbe .done
                or al,20h