From 67271ef244eef65bd6bee25d5112b6209c90ce0d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Mar 2008 14:09:00 +0200 Subject: [PATCH] Fix a bug in unistdio routines, introduced on 2007-06-10. --- ChangeLog | 6 ++++++ lib/vasnprintf.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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. */ -- 2.11.0