From: Marc Espie Date: Thu, 4 Jun 2020 14:59:17 +0000 (+0200) Subject: isint_w should use long literals X-Git-Tag: v3.5.0~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152c9234d18ab7e7b99f51f9f064547fc6273c5f;p=thirdparty%2Flibarchive.git isint_w should use long literals cut&paste from isint apparently forgot that --- diff --git a/libarchive/archive_acl.c b/libarchive/archive_acl.c index 952e20df4..41bb31f6e 100644 --- a/libarchive/archive_acl.c +++ b/libarchive/archive_acl.c @@ -1402,14 +1402,14 @@ isint_w(const wchar_t *start, const wchar_t *end, int *result) if (start >= end) return (0); while (start < end) { - if (*start < '0' || *start > '9') + if (*start < L'0' || *start > L'9') return (0); if (n > (INT_MAX / 10) || - (n == INT_MAX / 10 && (*start - '0') > INT_MAX % 10)) { + (n == INT_MAX / 10 && (*start - L'0') > INT_MAX % 10)) { n = INT_MAX; } else { n *= 10; - n += *start - '0'; + n += *start - L'0'; } start++; }