API prototype change and added a temporary variable to avoid casting
problems.
ticket: 5432
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20502
dc483132-0cff-0310-8789-
dd5450dbe970
krb5_error_code KRB5_CALLCONV krb5_kt_default_name
(krb5_context,
char *,
- size_t );
+ int );
krb5_error_code KRB5_CALLCONV krb5_kt_default
(krb5_context,
krb5_keytab * );
char *krb5_overridekeyname = NULL;
krb5_error_code KRB5_CALLCONV
-krb5_kt_default_name(krb5_context context, char *name, size_t namesize)
+krb5_kt_default_name(krb5_context context, char *name, int name_size)
{
char *cp = 0;
char *retval;
+ unsigned int namesize = (name_size < 0 ? 0 : name_size);
if (krb5_overridekeyname) {
if (namesize < (strlen(krb5_overridekeyname)+1))