summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-16 14:54:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-16 14:54:13 +0000
commit2274be2803f28298d46c88eebe4c038e9f6c2401 (patch)
treeeb5cb45a2f84f83ce9c0a4f840e828efda1ea8aa /libexec
parent9f156787128c442499df5538ef96829e4c9da56b (diff)
yet another strncat botch
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 114647f5482..4a1cd11b5e0 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: subr.c,v 1.3 1996/08/31 09:53:42 deraadt Exp $";
+static char rcsid[] = "$Id: subr.c,v 1.4 1996/12/16 14:54:12 deraadt Exp $";
#endif /* not lint */
/*
@@ -604,7 +604,7 @@ makeenv(env)
ep = env;
if (TT && *TT) {
- strncat(termbuf, TT, sizeof(termbuf)-1);
+ strncat(termbuf, TT, sizeof(termbuf)-strlen(termbuf)-1);
termbuf[sizeof(termbuf)-1] = '\0';
*ep++ = termbuf;
}