pullup from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 20 Dec 2004 22:03:00 +0000 (22:03 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 20 Dec 2004 22:03:00 +0000 (22:03 +0000)
ticket: 2838
version_fixed: 1.4

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@16970 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/libtelnet/ChangeLog
src/appl/telnet/libtelnet/kerberos.c

index 3467422dd3268d466e006e43bab0218eb2e59a30..a02cd8d315208be33b8ad7e0697722cee8052a62 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-20  Tom Yu  <tlyu@mit.edu>
+
+       * kerberos.c (kerberos4_status): Null-terminate the correct
+       string.  Reported by Marcin Garski.
+
 2004-11-15  Tom Yu  <tlyu@mit.edu>
 
        * auth-proto.h, auth.c: Merge Athena changes for requiring
index 8d4c7f330cc7a89077c91033a686c320edcaf76c..7e0d7360cb4682ad2f834dcc42dffde8f8fd072c 100644 (file)
@@ -619,7 +619,7 @@ kerberos4_status(ap, kname, level)
        if (UserNameRequested) {
                /* the name buffer comes from telnetd/telnetd{-ktd}.c */
                strncpy(kname, UserNameRequested, 255);
-               name[255] = '\0';
+               kname[255] = '\0';
        }
 
        if (UserNameRequested && !kuserok(&adat, UserNameRequested)) {