From b84627ae61867932923c48fc8b6523dc0bc1db62 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Mar 1996 22:33:36 +0000 Subject: [PATCH] * sn2princ.c (krb5_sname_to_principal): Do not assign a const char * to a non-const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7658 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/sn2princ.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index c132d31ac..bd762c5e5 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 18 17:30:54 1996 Ezra Peisach + + * sn2princ.c (krb5_sname_to_principal): Do not assign a const char * + to a non-const char *. + Mon Mar 18 14:18:58 EST 1996 Richard Basch * sn2princ.c: Do not try to re-assign const variables. diff --git a/src/lib/krb5/os/sn2princ.c b/src/lib/krb5/os/sn2princ.c index 2ddcefb9d..e9622049a 100644 --- a/src/lib/krb5/os/sn2princ.c +++ b/src/lib/krb5/os/sn2princ.c @@ -45,8 +45,8 @@ krb5_sname_to_principal(context, hostname, sname, type, ret_princ) krb5_error_code retval; register char *cp; char localname[MAXHOSTNAMELEN]; - char *host = hostname; - char *service = sname; + const char *host = hostname; + const char *service = sname; if ((type == KRB5_NT_UNKNOWN) || (type == KRB5_NT_SRV_HST)) { -- 2.26.2