summaryrefslogtreecommitdiff
path: root/libbb/process_escape_sequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/process_escape_sequence.c')
-rw-r--r--libbb/process_escape_sequence.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/process_escape_sequence.c b/libbb/process_escape_sequence.c
index e6b5fc9..9b57ff9 100644
--- a/libbb/process_escape_sequence.c
+++ b/libbb/process_escape_sequence.c
@@ -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;