summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tr.c b/src/tr.c
index 866f6c893..21a82ca84 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -891,7 +891,8 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx,
++digit_str;
--digit_str_len;
}
- if (xstrtoul (digit_str, &d_end, base, &tmp_ulong, NULL) != LONGINT_OK
+ if (xstrtoul (digit_str, &d_end, base, &tmp_ulong, NULL)
+ != LONGINT_OK
|| BEGIN_STATE < tmp_ulong
|| d_end - digit_str != digit_str_len)
{