From: Paul Eggert Date: Sun, 18 Aug 2024 15:45:41 +0000 (-0700) Subject: Fix string size bound calculation X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1e4947992aa1b011a9b97c1e5c653eb6c1c5474;p=thirdparty%2Ftar.git Fix string size bound calculation * src/common.h (UINTMAX_STRSIZE_BOUND): Fix typo that luckily didn’t break anything. --- diff --git a/src/common.h b/src/common.h index 2d7f76cd..af440a52 100644 --- a/src/common.h +++ b/src/common.h @@ -697,7 +697,7 @@ represent_uintmax (uintmax_t n) } } -enum { UINTMAX_STRSIZE_BOUND = INT_BUFSIZE_BOUND (intmax_t) }; +enum { UINTMAX_STRSIZE_BOUND = INT_BUFSIZE_BOUND (uintmax_t) }; enum { SYSINT_BUFSIZE = max (UINTMAX_STRSIZE_BOUND, INT_BUFSIZE_BOUND (intmax_t)) }; char *sysinttostr (uintmax_t, intmax_t, uintmax_t, char buf[SYSINT_BUFSIZE]);