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

This commit is contained in:
Max Kellermann 2013-05-06 22:21:03 +02:00 committed by Alexandre Julliard
parent 6cc0e706dd
commit cee65e9409
1 changed files with 1 additions and 1 deletions

View File

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