diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1997-03-11 00:08:01 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1997-03-11 00:08:01 +0000 |
| commit | 401fd2032d7b17d3805379b7d8748b8fcc9e855f (patch) | |
| tree | acb6be0558ee5b55e4d2660533c5ceee348ffc5b /sbin/init | |
| parent | 17d68b04ff9fcd2dc603fc7fcd82bddd7ae7dc22 (diff) | |
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; } |
