Fix vprintf(3)
TODO: what did this actually fix?
This commit is contained in:
parent
a34280dec7
commit
573e4c150b
|
@ -811,9 +811,9 @@ static int __vsnprintf_internal(char *string, size_t size, const char *fmt, va_l
|
|||
|
||||
static int vsnprintf_put_in_string(char *string, unsigned int sz, char c, int pos)
|
||||
{
|
||||
if(pos>=sz)
|
||||
if(pos >= sz && c)
|
||||
return 0;
|
||||
else
|
||||
else if (c || pos <= sz)
|
||||
string[pos] = c;
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user