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

Fix issue when converting string to uppercase

This commit is contained in:
Darshit Shah 2013-05-04 21:35:17 +05:30 committed by Giuseppe Scrivano
parent 52dd6da6e0
commit 277785fa2a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-05-04 Darshit Shah <darnir@gmail.com>
* init.c (cmd_string_uppercase): Fix issue that cased invalid headers
when converting to uppercase.
2013-05-01 Gijs van Tulder <gvtulder@gmail.com>
* retr.c (retrieve_url): New variable `saved_method'.

View File

@ -970,8 +970,8 @@ cmd_string_uppercase (const char *com, const char *val, void *place)
if (!ret || q == NULL)
return false;
while (*q)
*q++ = c_toupper (*q);
for ( ;*q; *q++)
*q = c_toupper (*q);
return true;
}