]> sjero.net Git - wget/commitdiff
[svn] Decrease buffer size of with_thousand_seps_sum.
authorhniksic <devnull@localhost>
Sat, 25 Jun 2005 20:50:42 +0000 (13:50 -0700)
committerhniksic <devnull@localhost>
Sat, 25 Jun 2005 20:50:42 +0000 (13:50 -0700)
src/ChangeLog
src/utils.c

index 904d85a5dfad2d7fa1c3a1e2c14d6fb194aaf5b0..bce65f62816b923b4cfbed40a210aa9a99fb715f 100644 (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
index d0d7fbc9d0ba83c3518c05e445225aecd2072f50..a2942b3724c1e9f28598df4905a7ba947a0bfe12 100644 (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);
 }