* sn2princ.c: Do not cast away const char * in call to strdup
authorEzra Peisach <epeisach@mit.edu>
Wed, 25 Jul 2001 10:24:31 +0000 (10:24 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 25 Jul 2001 10:24:31 +0000 (10:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13637 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/sn2princ.c

index 7b09b1bfd93a8064f430c8a6cb8678961d069a10..f4e02f4cfaee204d209c16b62c7abd42547bd8b1 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-24  Ezra Peisach  <epeisach@mit.edu>
+
+       * sn2princ.c: Do not cast away const char * in call to strdup.
+
 2001-07-24  Jeffrey Altman <jaltman@columbia.edu>
 
         * def_realm.c: 
index c23959fcb74a06c1a612f468f086ea55b381aec3..94acc200977bf518f14fa037d037977b22fed7ad 100644 (file)
@@ -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;