From: Theodore Tso Date: Fri, 10 Jun 1994 22:33:01 +0000 (+0000) Subject: Fix bug which caused get_default_realm to fail the second time it was called. X-Git-Tag: krb5-1.0-beta4~116 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2880ee829141a7ccf11a1a399b60a3e1b6a12a6;p=krb5.git Fix bug which caused get_default_realm to fail the second time it was called. (typo). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3737 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/def_realm.c b/src/lib/krb5/os/def_realm.c index 809ee4405..9f57b1e3c 100644 --- a/src/lib/krb5/os/def_realm.c +++ b/src/lib/krb5/os/def_realm.c @@ -103,6 +103,6 @@ char **lrealm; if (!(*lrealm = cp = malloc((unsigned int) strlen(realm) + 1))) return ENOMEM; - strcpy(cp, realmbuf); + strcpy(cp, realm); return(0); }