* modules/snprintf (Depends-on): Remove minmax.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Aug 2006 19:32:38 +0000 (19:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Aug 2006 19:32:38 +0000 (19:32 +0000)
commit7e421d1cd6a8752aa527895c759a72a47203959a
tree1d9add3f2e88489efb21cd0ceb6a839444908e67
parentc2d099ba2d0f3e12493df3fdd1b9ec4dfc33df83
* 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.
ChangeLog
lib/.cppi-disable
lib/ChangeLog
lib/snprintf.c
modules/snprintf