summaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-10 08:02:24 +0000
committerJim Meyering <jim@meyering.net>2005-03-10 08:02:24 +0000
commitf83e17f9284d36767c4dde92c1ec95716ef716ad (patch)
tree0b92d6c36a2da611c62a2e0eede49e46ec93cbad /src/expr.c
parent075a99ffcf507853bf5e30dd1a1da5599554d55b (diff)
downloadcoreutils-f83e17f9284d36767c4dde92c1ec95716ef716ad.tar.xz
(tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index 5cc068a51..9c6b12e6e 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)
{