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 e6b5fc99550c8b2fad6729b20949ebcb5f6a3f97..9b57ff99e996df3d88d58f058ff9249f9b520d9e 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;