Felipe Kellermann noticed a missing `break'.
authorEric Andersen <andersen@codepoet.org>
Tue, 27 Jul 2004 16:45:46 +0000 (16:45 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 27 Jul 2004 16:45:46 +0000 (16:45 -0000)
libbb/process_escape_sequence.c

index e6b5fc9..9b57ff9 100644 (file)
@@ -52,6 +52,8 @@ char bb_process_escape_sequence(const char **ptr)
                        r = n * 16 + hextobin(*q);
                } else if (isodigit(*q)) {
                        r = n * 8 + octtobin(*q);
+               } else {
+                       break;
                }
                if (r <= UCHAR_MAX) {
                        n = r;