From: Tom Yu Date: Mon, 20 Dec 2004 22:02:19 +0000 (+0000) Subject: * kerberos.c (kerberos4_status): Null-terminate the correct X-Git-Tag: ms-bug-test-20060525~418 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5809382decde661e10ae28e3446b98ca3e62857a;p=krb5.git * kerberos.c (kerberos4_status): Null-terminate the correct string. Reported by Marcin Garski. ticket: 2838 tags: pullup target_version: 1.4 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16969 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index 3467422dd..a02cd8d31 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,8 @@ +2004-12-20 Tom Yu + + * kerberos.c (kerberos4_status): Null-terminate the correct + string. Reported by Marcin Garski. + 2004-11-15 Tom Yu * auth-proto.h, auth.c: Merge Athena changes for requiring diff --git a/src/appl/telnet/libtelnet/kerberos.c b/src/appl/telnet/libtelnet/kerberos.c index 8d4c7f330..7e0d7360c 100644 --- a/src/appl/telnet/libtelnet/kerberos.c +++ b/src/appl/telnet/libtelnet/kerberos.c @@ -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)) {