(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:
@@ -214,6 +214,9 @@ append_string (struct state *state,
|
|||||||
int prec,
|
int prec,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
|
if(arg == NULL)
|
||||||
|
arg = (unsigned char*)"(null)";
|
||||||
|
|
||||||
if(prec != -1)
|
if(prec != -1)
|
||||||
width -= prec;
|
width -= prec;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user