Mercurial > hg > octave-kai > gnulib-hg
diff lib/ChangeLog @ 7109:8f07495555ba
* modules/snprintf (Depends-on): Remove minmax.
(Maintainer): Add self.
* lib/.cppi-disable: Add snprintf.h, socket_.h.
* lib/snprintf.c: Include <errno.h> and <limits.h>.
(EOVERFLOW): Define if the system does not.
Do not include "minmax.h"; it wasn't used.
(snprintf): Don't assume size_t promotes to an unsigned type.
Fix bug when generated string was too long for the buffer: the
buffer's contents are supposed to be the initial prefix of the
output. Don't assume vasnprintf returns EOVERFLOW if the size
exceeds INT_MAX; do the check ourselves.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 10 Aug 2006 19:32:38 +0000 |
parents | de3bdf23e3d7 |
children | f4969cab8e44 |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,15 @@ +2006-08-10 Paul Eggert <eggert@cs.ucla.edu> + + * .cppi-disable: Add snprintf.h, socket_.h. + * snprintf.c: Include <errno.h> and <limits.h>. + (EOVERFLOW): Define if the system does not. + Do not include "minmax.h"; it wasn't used. + (snprintf): Don't assume size_t promotes to an unsigned type. + Fix bug when generated string was too long for the buffer: the + buffer's contents are supposed to be the initial prefix of the + output. Don't assume vasnprintf returns EOVERFLOW if the size + exceeds INT_MAX; do the check ourselves. + 2006-08-09 Paul Eggert <eggert@cs.ucla.edu> Sync from coreutils.