Commit 0fad4fbd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix overflow on UTF-16 strings with an odd characters length

parent 68578863
......@@ -914,7 +914,7 @@ char *FromUTF16( const uint16_t *src )
/* determine the size of the string */
for( len = 1, in = src; *in; len++ )
in += 2;
in++;
return UTF16toUTF8( src, len, NULL );
}
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