From: Jim Meyering Date: Thu, 10 Mar 2005 08:02:24 +0000 (+0000) Subject: (tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. X-Git-Tag: CPPI-1_12~1333 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f83e17f9284d36767c4dde92c1ec95716ef716ad;p=thirdparty%2Fcoreutils.git (tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. --- diff --git a/src/expr.c b/src/expr.c index 5cc068a511..9c6b12e6e5 100644 --- a/src/expr.c +++ b/src/expr.c @@ -249,7 +249,7 @@ static void printv (VALUE *v) { char *p; - char buf[INT_STRLEN_BOUND (intmax_t) + 1]; + char buf[INT_BUFSIZE_BOUND (intmax_t)]; switch (v->type) { @@ -302,7 +302,7 @@ null (VALUE *v) static void tostring (VALUE *v) { - char buf[INT_STRLEN_BOUND (intmax_t) + 1]; + char buf[INT_BUFSIZE_BOUND (intmax_t)]; switch (v->type) {