make system server vprintf check for NULL

This commit is contained in:
Erik van der Kouwe 2010-10-04 17:53:18 +00:00
parent 7bc944c8a9
commit b0eaf0bc27

View file

@ -142,6 +142,7 @@ int vprintf(const char *fmt, va_list argp)
/* A string. The other cases will join in here. */
case 's':
p= va_arg(argp, char *);
if (!p) p = "(null)";
string_length:
for (len= 0; p[len] != 0 && len < max; len++) {}