Improve sprintf semantics and usage

This commit is contained in:
shchmue 2019-05-12 14:05:58 -04:00
parent f73bb0b7b7
commit 83b75af726
2 changed files with 16 additions and 16 deletions

View file

@ -116,6 +116,7 @@ u32 sprintf(char *buffer, const char *fmt, ...) {
}
out:
buffer[count] = 0;
va_end(ap);
return count;
}