summaryrefslogtreecommitdiff
path: root/libexec/getty
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-31 09:53:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-31 09:53:43 +0000
commit3e0ecb07bea7a964bd15d27f7d55594c9498d791 (patch)
treea5aef6c05e8207c27f53667ba55a6b5ac7955486 /libexec/getty
parent01bebf01277503d67e1a208085b2a86a44154993 (diff)
buf oflow
Diffstat (limited to 'libexec/getty')
-rw-r--r--libexec/getty/subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 0782f6c5984..114647f5482 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.2 1996/08/07 17:20:45 deraadt Exp $";
+static char rcsid[] = "$Id: subr.c,v 1.3 1996/08/31 09:53:42 deraadt Exp $";
#endif /* not lint */
/*
@@ -604,7 +604,8 @@ makeenv(env)
ep = env;
if (TT && *TT) {
- strcat(termbuf, TT);
+ strncat(termbuf, TT, sizeof(termbuf)-1);
+ termbuf[sizeof(termbuf)-1] = '\0';
*ep++ = termbuf;
}
if (p = EV) {