msvcrt: Fixed buffer overflow in snprintf functions family.

Spotted by Andrew Miller.
This commit is contained in:
Piotr Caban 2011-06-06 14:02:30 +02:00 committed by Alexandre Julliard
parent 129021a0ab
commit ab9077d640
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ static int FUNC_NAME(puts_clbk_str)(void *ctx, int len, const APICHAR *str)
memcpy(out->buf, str, len*sizeof(APICHAR));
out->buf += len;
out->len -= len;
return len;
}