From f1e4947992aa1b011a9b97c1e5c653eb6c1c5474 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 18 Aug 2024 08:45:41 -0700 Subject: [PATCH] Fix string size bound calculation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/common.h (UINTMAX_STRSIZE_BOUND): Fix typo that luckily didn’t break anything. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.47.2