Improve sprintf semantics and usage
This commit is contained in:
parent
f73bb0b7b7
commit
83b75af726
2 changed files with 16 additions and 16 deletions
|
@ -116,6 +116,7 @@ u32 sprintf(char *buffer, const char *fmt, ...) {
|
|||
}
|
||||
|
||||
out:
|
||||
buffer[count] = 0;
|
||||
va_end(ap);
|
||||
return count;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue