1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

http_atotm copies the NUL character of the locale string.

This commit is contained in:
Giuseppe Scrivano 2010-05-23 10:58:05 +02:00
parent 58a9721edf
commit 84b2d52598
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-05-23 Giuseppe Scrivano <gscrivano@gnu.org>
* http.c (http_atotm): Count the NUL character when copying the locale
string.
Reported by: Florian Weimer <fw@deneb.enyo.de>
2010-05-16 Giuseppe Scrivano <gscrivano@gnu.org>
* Makefile.am (LDADD): Remove MD5_LDADD.

View File

@ -3203,7 +3203,7 @@ http_atotm (const char *time_string)
oldlocale = setlocale (LC_TIME, NULL);
if (oldlocale)
{
size_t l = strlen (oldlocale);
size_t l = strlen (oldlocale) + 1;
if (l >= sizeof savedlocale)
savedlocale[0] = '\0';
else