From: Bruno Haible Date: Sun, 30 Mar 2008 12:09:00 +0000 (+0200) Subject: Fix a bug in unistdio routines, introduced on 2007-06-10. X-Git-Tag: v0.1~7631^2~10 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=67271ef244eef65bd6bee25d5112b6209c90ce0d;p=gnulib.git Fix a bug in unistdio routines, introduced on 2007-06-10. --- diff --git a/ChangeLog b/ChangeLog index 0e88c4b51..bf1146a43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-03-30 Bruno Haible + Fix bug introduced on 2007-06-10. + * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use + spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO. + +2008-03-30 Bruno Haible + Improve freadseek's efficiency after ungetc. * lib/freadseek.c: Include freadahead.h. (freadptrinc): New function, extracted from freadseek. diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 968835a1e..e85865ced 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -4553,7 +4553,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; -# if !DCHAR_IS_TCHAR +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */