aboutsummaryrefslogtreecommitdiff
path: root/libbb/xatonum_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xatonum_template.c')
-rw-r--r--libbb/xatonum_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xatonum_template.c b/libbb/xatonum_template.c
index bc8116056..205da53c8 100644
--- a/libbb/xatonum_template.c
+++ b/libbb/xatonum_template.c
@@ -45,7 +45,7 @@ unsigned type xstrtou(_range_sfx)(const char *numstr, int base,
45 * Note that we also allow nul suffixes with associated multipliers, 45 * Note that we also allow nul suffixes with associated multipliers,
46 * to allow for scaling of the numstr by some default multiplier. */ 46 * to allow for scaling of the numstr by some default multiplier. */
47 if (suffixes) { 47 if (suffixes) {
48 while (suffixes->suffix) { 48 while (suffixes->mult) {
49 if (strcmp(suffixes->suffix, e) == 0) { 49 if (strcmp(suffixes->suffix, e) == 0) {
50 if (XSTR_UTYPE_MAX / suffixes->mult < r) 50 if (XSTR_UTYPE_MAX / suffixes->mult < r)
51 goto range; /* overflow! */ 51 goto range; /* overflow! */