]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix string size bound calculation
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Aug 2024 15:45:41 +0000 (08:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2024 16:57:13 +0000 (09:57 -0700)
* src/common.h (UINTMAX_STRSIZE_BOUND):
Fix typo that luckily didn’t break anything.

src/common.h

index 2d7f76cd4eb9800996db345098687903b7b87149..af440a527037df91c173cc516b015ef1c6d0bc02 100644 (file)
@@ -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]);