Fix bug which caused get_default_realm to fail the second time it was called.
authorTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 22:33:01 +0000 (22:33 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 22:33:01 +0000 (22:33 +0000)
(typo).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3737 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/def_realm.c

index 809ee44051da373652a3181306a837d96b0f9f05..9f57b1e3c75e714986acc8a00580ecafb2acff09 100644 (file)
@@ -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);
 }