]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: enlarge the local buffer for printfrr extension tokens
authorMark Stapp <mjs@voltanet.io>
Tue, 23 Mar 2021 18:48:58 +0000 (14:48 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 23 Mar 2021 18:48:58 +0000 (14:48 -0400)
Make the local buffer offered to printfrr extension tokens
bigger; existing size wasn't quite enough for some of the
more elaborate struct prefix types.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/printf/vfprintf.c

index a0634cde4b9bc07fce193a117ccba7c95bbe6a32..8c7a8a58c4f0c94aa4479637fcbaeefec0e766aa 100644 (file)
@@ -138,7 +138,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
  * write a uintmax_t in octal (plus one byte).
  */
 #if UINTMAX_MAX <= UINT64_MAX
-#define        BUF     64
+#define        BUF     80
 #else
 #error "BUF must be large enough to format a uintmax_t"
 #endif