diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-06 23:45:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-06 23:45:24 +0000 |
commit | 6796bc807aa3808f6afb5da42932e437bdd183cf (patch) | |
tree | f0610b5aebf183e95afb9f70c30d77ea82f9ef9e /time | |
parent | baa3334acc20834b32be1abf96f5942367c31a06 (diff) | |
download | glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.zip glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar.gz glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar.bz2 |
Update.
1998-09-06 09:53 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
* Makeconfig (+gccwarn): Remove -Wno-parentheses.
* elf/dl-open.c: Quiet -Wparentheses warnings.
* iconvdata/johab.c: Likewise.
* iconvdata/uhc.c: Likewise.
* inet/inet_net.c: Likewise.
* io/fts.c: Likewise.
* locale/newlocale.c: Likewise.
* misc/getttyent.c: Likewise.
* misc/mntent_r.c: Likewise.
* misc/ttyslot.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nss/nsswitch.c: Likewise.
* resolv/gethnamaddr.c: Likewise.
* resolv/nsap_addr.c: Likewise.
* resolv/res_debug.c: Likewise.
* stdio-common/_itoa.c: Likewise.
* stdlib/strtod.c: Likewise.
* string/strverscmp.c: Likewise.
* sunrpc/svc.c: Likewise.
* sysdeps/libm-ieee754/e_cosh.c: Likewise.
* sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
* sysdeps/libm-ieee754/e_sinh.c: Likewise.
* sysdeps/posix/getaddrinfo.c: Likewise.
* include/dlfcn.h: Likewise.
* elf/dlfcn.h: Declare dladdr only for __USE_GNU.
Define RTLD_DEFAULT.
Diffstat (limited to 'time')
-rw-r--r-- | time/strftime.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c index f0be6b6..ed02960 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -542,7 +542,13 @@ my_strftime (s, maxsize, format, tp) if (bytes == 0) break; - if (bytes == (size_t) -2 || bytes == (size_t) -1) + if (bytes == (size_t) -2) + { + len += strlen (f + len); + break; + } + + if (bytes == (size_t) -1) { len++; break; @@ -553,6 +559,7 @@ my_strftime (s, maxsize, format, tp) while (! mbsinit (&mbstate)); cpy (len, f); + f += len - 1; continue; } } |