mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Decrease buffer size of with_thousand_seps_sum.
This commit is contained in:
parent
3735ecda38
commit
d92cf8d560
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user