[svn] Decrease buffer size of with_thousand_seps_sum.

This commit is contained in:
hniksic 2005-06-25 13:50:42 -07:00
parent 3735ecda38
commit d92cf8d560
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-25 Hrvoje Niksic <hniksic@xemacs.org>
* utils.c (with_thousand_seps_sum): Decrease buffer size so it
cannot overrun add_thousand_seps's buffer.
2005-06-25 Hrvoje Niksic <hniksic@xemacs.org>
* utils.c (SPRINTF_WGINT): The correct format is %I64d, not just

View File

@ -1221,7 +1221,7 @@ with_thousand_seps (wgint l)
char *
with_thousand_seps_sum (SUM_SIZE_INT l)
{
char inbuf[64];
char inbuf[32];
snprintf (inbuf, sizeof (inbuf), "%.0f", l);
return add_thousand_seps (inbuf);
}