=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/auth-krb4.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/ssh/Attic/auth-krb4.c 1999/09/29 18:16:18 1.2 +++ src/usr.bin/ssh/Attic/auth-krb4.c 1999/09/29 21:14:15 1.3 @@ -6,7 +6,7 @@ Kerberos v4 authentication and ticket-passing routines. - $Id: auth-krb4.c,v 1.2 1999/09/29 18:16:18 dugsong Exp $ + $Id: auth-krb4.c,v 1.3 1999/09/29 21:14:15 deraadt Exp $ */ #include "includes.h" @@ -130,7 +130,7 @@ goto auth_kerberos_tgt_failure; } if (strncmp(creds.service, "", 1) == 0) /* backward compatibility */ - strcpy(creds.service, "krbtgt"); + strlcpy(creds.service, "krbtgt", sizeof creds.service); if (strcmp(creds.service, "krbtgt")) { log("Kerberos V4 tgt (%s%s%s@%s) rejected for uid %d", @@ -184,7 +184,7 @@ return 0; } if (strncmp(creds.service, "", 1) == 0) /* backward compatibility */ - strcpy(creds.service, "afs"); + strlcpy(creds.service, "afs", sizeof creds.service); if (strncmp(creds.pname, "AFS ID ", 7) == 0) uid = atoi(creds.pname + 7);