msvcrt: Fixed buffer overflow in snprintf functions family.
Spotted by Andrew Miller.
This commit is contained in:
parent
129021a0ab
commit
ab9077d640
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue