(append_string): handle NULL strings by printing `(null)'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9392 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-12-15 14:04:42 +00:00
parent bb929ceafd
commit 9e16596a07

View File

@@ -214,6 +214,9 @@ append_string (struct state *state,
int prec,
int flags)
{
if(arg == NULL)
arg = (unsigned char*)"(null)";
if(prec != -1)
width -= prec;
else