mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
ksprintf() should null-terminate strings.
This commit is contained in:
parent
c149d2a8f0
commit
6ab0649ad6
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ int ksprintf(char* buffer, const char* fmt, ...)
|
|||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
int ret = kprintfInternal(buffer_putch, buffer, fmt, ap);
|
||||
buffer[ret] = '\0';
|
||||
va_end(ap);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue