]> sjero.net Git - wget/blobdiff - src/ChangeLog
[svn] Fixed a number of bugs in snprintf.c.
[wget] / src / ChangeLog
index 576440188fd0689c33555bfe4bceac7817f21177..310e9d94734da461cc6f8dd9b88cb1df8058384a 100644 (file)
@@ -1,3 +1,20 @@
+2005-04-16  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * snprintf.c: Use the PARAMS macro to handle prototypes.  Write
+       function definitions in the ansi2knr-friendly way.
+       (fmtstr): If string precision is specified, don't read VALUE past
+       it.
+       (dopr): Actually print %g and %e formats.
+       (fmtfp): Fix a bug that caused 0.01 to be printed as 0.1.
+       (fmtfp): Use LLONG in floating point conversions to be able to
+       convert more digits.
+       (fmtfp): Interpret precision as number of significant digits with
+       %g.
+       (fmtfp): Omit trailing decimal zeros with %g.
+
+       * snprintf.c: Don't include <ctype.h> because none of it is used.
+       Include strings.h/string.h, as per Autoconf.
+
 2005-04-15  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * ptimer.c: Use _POSIX_TIMERS - 0 > 0, which handles the case when