From: Ezra Peisach Date: Wed, 25 Jul 2001 10:24:31 +0000 (+0000) Subject: * sn2princ.c: Do not cast away const char * in call to strdup X-Git-Tag: krb5-1.3-alpha1~1174 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad7ee54b12e5f479f561a889a994d869081ebf4d;p=krb5.git * sn2princ.c: Do not cast away const char * in call to strdup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13637 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 7b09b1bfd..f4e02f4cf 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,7 @@ +2001-07-24 Ezra Peisach + + * sn2princ.c: Do not cast away const char * in call to strdup. + 2001-07-24 Jeffrey Altman * def_realm.c: diff --git a/src/lib/krb5/os/sn2princ.c b/src/lib/krb5/os/sn2princ.c index c23959fcb..94acc2009 100644 --- a/src/lib/krb5/os/sn2princ.c +++ b/src/lib/krb5/os/sn2princ.c @@ -92,7 +92,7 @@ krb5_sname_to_principal(context, hostname, sname, type, ret_princ) return ENOMEM; } } else /* type == KRB5_NT_UNKNOWN */ { - remote_host = strdup((char *) hostname); + remote_host = strdup(hostname); } if (!remote_host) return ENOMEM;