Commit 0a07f598 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

wininet: Don't overallocate in urlcache_encode_url_alloc (scan-build).

The URL is encoded in UTF-8, not UTF-16.
parent b97b2fbf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment