[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rshd s/strcpy/strlcpy/
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: rshd s/strcpy/strlcpy/
- From: jsyn <jsyn_(_at_)_nthought_(_dot_)_com>
- Date: Mon, 2 Jul 2001 14:44:57 -0500
Another minor strcpy/strncpy/strcat/strncat fix, this one for rshd.
jsyn
--- libexec/rshd/rshd.c.orig Mon Jul 2 14:21:44 2001
+++ libexec/rshd/rshd.c Mon Jul 2 14:26:05 2001
@@ -441,7 +441,7 @@ doit(fromp)
kdata = (AUTH_DAT *) authbuf;
ticket = (KTEXT) tickbuf;
authopts = 0L;
- strcpy(instance, "*");
+ strlcpy(instance, "*", sizeof(instance));
version[VERSION_SIZE - 1] = '\0';
#ifdef CRYPT
if (doencrypt) {
Visit your host, monkey.org