make system server vprintf check for NULL
This commit is contained in:
parent
7bc944c8a9
commit
b0eaf0bc27
1 changed files with 1 additions and 0 deletions
|
@ -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++) {}
|
||||
|
|
Loading…
Reference in a new issue