diff options
Diffstat (limited to 'libc/print.c')
-rw-r--r-- | libc/print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/print.c b/libc/print.c index 629a410..a9e21f6 100644 --- a/libc/print.c +++ b/libc/print.c @@ -36,6 +36,7 @@ int vsprintf(char *str, const char *format, va_list ap) // TODO: Improve this repetitive code if (buf == 's') { char *string = va_arg(ap, char *); + assert(string); append(str, string, i); i = strlen(str); } else if (buf == 'x') { |