diff options
Diffstat (limited to 'sbin/init')
| -rw-r--r-- | sbin/init/Makefile | 2 | ||||
| -rw-r--r-- | sbin/init/init.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile index 8a0fd04549a4..ee1b51c85912 100644 --- a/sbin/init/Makefile +++ b/sbin/init/Makefile @@ -1,5 +1,5 @@ # @(#)Makefile 8.1 (Berkeley) 7/19/93 -# $Id: Makefile,v 1.8 1996/09/05 17:14:50 bde Exp $ +# $Id: Makefile,v 1.3.6.1 1996/11/24 09:31:43 joerg Exp $ PROG= init MAN8= init.8 diff --git a/sbin/init/init.c b/sbin/init/init.c index 4937f394dc0b..f06b2dccdf13 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -1059,7 +1059,7 @@ start_window_system(sp) if (sp->se_type) { /* Don't use malloc after fork */ strcpy(term, "TERM="); - strncat(term, sp->se_type, sizeof(term) - 6); + strcat(term, sp->se_type); env[0] = term; env[1] = 0; } @@ -1121,7 +1121,7 @@ start_getty(sp) if (sp->se_type) { /* Don't use malloc after fork */ strcpy(term, "TERM="); - strncat(term, sp->se_type, sizeof(term) - 6); + strcat(term, sp->se_type); env[0] = term; env[1] = 0; } |
