From ad7ee54b12e5f479f561a889a994d869081ebf4d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 25 Jul 2001 10:24:31 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/os/ChangeLog | 4 ++++ src/lib/krb5/os/sn2princ.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.26.2