diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 18:57:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 18:57:07 +0000 |
commit | c00c1ddb383a08d64f13f9c6b7f6f5bdce6f3238 (patch) | |
tree | 0e0f0fd338a0534e27446a86975afcec3fc372e6 /libexec | |
parent | a635784ab8adb7a7d4021b0af3c80fdbdbaea47d (diff) |
a few more strlcat
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 | ||||
-rw-r--r-- | libexec/login_skey/login_skey.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index d8624462bdf..ad76c6cb379 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.126 2002/05/26 09:32:07 deraadt Exp $ */ +/* $OpenBSD: ftpd.c,v 1.127 2002/05/29 18:57:05 deraadt Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -73,7 +73,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #else -static char rcsid[] = "$OpenBSD: ftpd.c,v 1.126 2002/05/26 09:32:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ftpd.c,v 1.127 2002/05/29 18:57:05 deraadt Exp $"; #endif #endif /* not lint */ @@ -262,7 +262,7 @@ curdir() if (getcwd(path, sizeof(path)-1) == NULL) return (""); if (path[1] != '\0') /* special case for root dir. */ - strcat(path, "/"); + strlcat(path, "/", sizeof path); /* For guest account, skip / since it's chrooted */ return (guest ? path+1 : path); } diff --git a/libexec/login_skey/login_skey.c b/libexec/login_skey/login_skey.c index 0219d59c167..eb99bb3a564 100644 --- a/libexec/login_skey/login_skey.c +++ b/libexec/login_skey/login_skey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_skey.c,v 1.7 2002/02/16 21:27:30 millert Exp $ */ +/* $OpenBSD: login_skey.c,v 1.8 2002/05/29 18:57:06 deraadt Exp $ */ /*- * Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved. @@ -172,7 +172,7 @@ main(argc, argv) * challenge, even if it has to cons one up. */ haskey = (skeychallenge(&skey, username, skeyprompt) == 0); - strcat(skeyprompt, "\nS/Key Password: "); + strlcat(skeyprompt, "\nS/Key Password: ", sizeof skeyprompt); if (mode == 1) { fprintf(back, BI_VALUE " challenge %s\n", auth_mkvalue(skeyprompt)); |