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:
parent
58a9721edf
commit
84b2d52598
@ -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>
|
2010-05-16 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* Makefile.am (LDADD): Remove MD5_LDADD.
|
* Makefile.am (LDADD): Remove MD5_LDADD.
|
||||||
|
@ -3203,7 +3203,7 @@ http_atotm (const char *time_string)
|
|||||||
oldlocale = setlocale (LC_TIME, NULL);
|
oldlocale = setlocale (LC_TIME, NULL);
|
||||||
if (oldlocale)
|
if (oldlocale)
|
||||||
{
|
{
|
||||||
size_t l = strlen (oldlocale);
|
size_t l = strlen (oldlocale) + 1;
|
||||||
if (l >= sizeof savedlocale)
|
if (l >= sizeof savedlocale)
|
||||||
savedlocale[0] = '\0';
|
savedlocale[0] = '\0';
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user