Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.bin/login Pull up revision 1.17 (requested by wiz):
details: https://anonhg.NetBSD.org/src/rev/c98050e3b908
branches: netbsd-1-5
changeset: 490313:c98050e3b908
user: he <he%NetBSD.org@localhost>
date: Thu Dec 14 22:49:32 2000 +0000
description:
Pull up revision 1.17 (requested by wiz):
Use strlcpy() to copy environment variable into a fixed-length
buffer. Fixes PR#11550.
diffstat:
usr.bin/login/k5login.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3b70b4ef8431 -r c98050e3b908 usr.bin/login/k5login.c
--- a/usr.bin/login/k5login.c Thu Dec 14 22:43:35 2000 +0000
+++ b/usr.bin/login/k5login.c Thu Dec 14 22:49:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: k5login.c,v 1.12.2.4 2000/11/14 16:05:34 tv Exp $ */
+/* $NetBSD: k5login.c,v 1.12.2.5 2000/12/14 22:49:32 he Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -55,7 +55,7 @@
#if 0
static char sccsid[] = "@(#)klogin.c 5.11 (Berkeley) 7/12/92";
#endif
-__RCSID("$NetBSD: k5login.c,v 1.12.2.4 2000/11/14 16:05:34 tv Exp $");
+__RCSID("$NetBSD: k5login.c,v 1.12.2.5 2000/12/14 22:49:32 he Exp $");
#endif /* not lint */
#ifdef KERBEROS5
@@ -272,7 +272,7 @@
}
have_forward = 1;
- strcpy(tkt_location, getenv("KRB5CCNAME"));
+ strlcpy(tkt_location, getenv("KRB5CCNAME"), sizeof(tkt_location));
krb5tkfile_env = tkt_location;
has_ccache = 1;
notickets = 0;
Home |
Main Index |
Thread Index |
Old Index