Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2015-03-26 00:26:07 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-04-23 22:57:08 +0300
commit95a4fc87264e5fdeb5452d63d3b2df217a2f19b2 (patch)
tree4eb4e0db5158df247a7ddc0b2093f964274b74fa /newlib/ChangeLog
parent75d5f68aabf62c42884ff935f888b12bbcd00001 (diff)
strftime: use tzname if TM_ZONE is NULL
This avoids a strlen(NULL) crash a few lines later. * libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL. Use _tzname as fallback if TM_ZONE is NULL.
Diffstat (limited to 'newlib/ChangeLog')
-rw-r--r--newlib/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 7c57c94cd..6e45e940b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2015-03-30 Yaakov Selkowitz <yselkowi@redhat.com>
+ * libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL.
+ Use _tzname as fallback if TM_ZONE is NULL.
+
+2015-03-30 Yaakov Selkowitz <yselkowi@redhat.com>
+
* libc/include/libgen.h (_BASENAME_DEFINED): Define.
* libc/include/string.h (basename): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add gnu_basename.c.