glibc strftime.c bug: assumes subformats yield nonempty buffers

Ulrich Drepper drepper@cygnus.com
Fri Sep 25 22:02:00 GMT 1998


Paul Eggert <eggert@twinsun.com> writes:

> 1998-09-24  Paul Eggert  <eggert@twinsun.com>
> 
> 	* strftime.c (my_strftime): When asking for the length of the
> 	subformatted buffer, do not limit the length to look for;
> 	otherwise, we have no reliable way to distinguish between the
> 	empty buffer and an error.

Thanks, I've applied this.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-alpha mailing list