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

work on solaris


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13323 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-02-10 20:28:26 +00:00
parent c83c06dc81
commit 9e29b1f854

View File

@@ -98,11 +98,10 @@ change_password(krb5_context context,
return 1;
}
printf ("%s%s%.*s\n", krb5_passwd_result_to_string(context,
result_code),
printf ("%s%s%.*s\n", krb5_passwd_result_to_string(context, result_code),
result_string.length > 0 ? " : " : "",
(int)result_string.length,
(char *)result_string.data);
result_string.length > 0 ? (char *)result_string.data : "");
krb5_data_free (&result_code_string);
krb5_data_free (&result_string);