Commit d7ef6cbb authored by Alexandre Julliard's avatar Alexandre Julliard

mshtml: Use strncmpiW instead of memicmpW for strings without embedded nulls.

parent 38b1a1af
......@@ -728,7 +728,7 @@ static void parse_content_type(nsChannelBSC *This, const WCHAR *value)
ptr++;
len = strlenW(value);
if(ptr + ARRAY_SIZE(charsetW) < value+len && !memicmpW(ptr, charsetW, ARRAY_SIZE(charsetW))) {
if(ptr + ARRAY_SIZE(charsetW) < value+len && !strncmpiW(ptr, charsetW, ARRAY_SIZE(charsetW))) {
size_t charset_len, lena;
nsACString charset_str;
const WCHAR *charset;
......
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