]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.
authorJim Meyering <jim@meyering.net>
Thu, 10 Mar 2005 08:02:24 +0000 (08:02 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 10 Mar 2005 08:02:24 +0000 (08:02 +0000)
src/expr.c

index 5cc068a511a5077180295bf1ddbac6b02fca7c01..9c6b12e6e57029d15fe67e3ec339bf07548d1a0f 100644 (file)
@@ -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)
     {