mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 15:55:03 +00:00
wininet: Don't overallocate in urlcache_encode_url_alloc (scan-build).
The URL is encoded in UTF-8, not UTF-16.
This commit is contained in:
parent
b97b2fbf00
commit
0a07f5984e
|
@ -1926,7 +1926,7 @@ static BOOL urlcache_encode_url_alloc(const WCHAR *url, char **encoded_url)
|
|||
if(!encoded_len)
|
||||
return FALSE;
|
||||
|
||||
ret = malloc(encoded_len * sizeof(WCHAR));
|
||||
ret = malloc(encoded_len);
|
||||
if(!ret)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue