Don't assume display_string is truncated with NUL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19937 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -93,7 +93,8 @@ gss_print_errors (int min_stat)
|
|||||||
GSS_C_NO_OID,
|
GSS_C_NO_OID,
|
||||||
&msg_ctx,
|
&msg_ctx,
|
||||||
&status_string);
|
&status_string);
|
||||||
fprintf (stderr, "%s\n", (char *)status_string.value);
|
fprintf (stderr, "%.*s\n", (int)status_string.length,
|
||||||
|
(char *)status_string.value);
|
||||||
gss_release_buffer (&new_stat, &status_string);
|
gss_release_buffer (&new_stat, &status_string);
|
||||||
} while (!GSS_ERROR(ret) && msg_ctx != 0);
|
} while (!GSS_ERROR(ret) && msg_ctx != 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user