artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab30c27
)
buf oflow
author
deraadt
<deraadt@openbsd.org>
Sat, 31 Aug 1996 09:53:42 +0000
(09:53 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 31 Aug 1996 09:53:42 +0000
(09:53 +0000)
libexec/getty/subr.c
patch
|
blob
|
history
diff --git
a/libexec/getty/subr.c
b/libexec/getty/subr.c
index
0782f6c
..
114647f
100644
(file)
--- 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) {