mirror of
https://github.com/mirror/wget.git
synced 2025-02-14 05:40:21 +08: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>
|
2005-06-25 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* utils.c (SPRINTF_WGINT): The correct format is %I64d, not just
|
* utils.c (SPRINTF_WGINT): The correct format is %I64d, not just
|
||||||
|
@ -1221,7 +1221,7 @@ with_thousand_seps (wgint l)
|
|||||||
char *
|
char *
|
||||||
with_thousand_seps_sum (SUM_SIZE_INT l)
|
with_thousand_seps_sum (SUM_SIZE_INT l)
|
||||||
{
|
{
|
||||||
char inbuf[64];
|
char inbuf[32];
|
||||||
snprintf (inbuf, sizeof (inbuf), "%.0f", l);
|
snprintf (inbuf, sizeof (inbuf), "%.0f", l);
|
||||||
return add_thousand_seps (inbuf);
|
return add_thousand_seps (inbuf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user