(change_password): handle that printf("%.*s", 0, (void*)NULL); doesn't

work on solaris


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13326 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-02-11 12:30:35 +00:00
parent a21c6faec4
commit 0d4320db0b

View File

@@ -438,7 +438,7 @@ change_password (krb5_context context,
asprintf (&p, "%s: %.*s\n",
result_code ? "Error" : "Success",
(int)result_string.length,
(char*)result_string.data);
result_string.length > 0 ? (char*)result_string.data : "");
ret = (*prompter) (context, data, NULL, p, 0, NULL);
free (p);