Commit cee65e94 authored by Max Kellermann's avatar Max Kellermann Committed by Alexandre Julliard

msvcrt: Fix character/byte confusion in buffer overflow branch.

parent 6cc0e706
...@@ -48,7 +48,7 @@ static int FUNC_NAME(puts_clbk_str)(void *ctx, int len, const APICHAR *str) ...@@ -48,7 +48,7 @@ static int FUNC_NAME(puts_clbk_str)(void *ctx, int len, const APICHAR *str)
return len; return len;
if(out->len < len) { if(out->len < len) {
memcpy(out->buf, str, out->len); memcpy(out->buf, str, out->len*sizeof(APICHAR));
out->buf += out->len; out->buf += out->len;
out->len = 0; out->len = 0;
return -1; return -1;
......
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