From: deraadt Date: Mon, 16 Dec 1996 17:14:03 +0000 (+0000) Subject: strncat like THIS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f77ab1d1281f489ea5f6c082baf6f844cc340dfb;p=openbsd strncat like THIS --- diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 4a1cd11b5e0..f2c8dc5c0e7 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.4 1996/12/16 14:54:12 deraadt Exp $"; +static char rcsid[] = "$Id: subr.c,v 1.5 1996/12/16 17:14:03 deraadt Exp $"; #endif /* not lint */ /* @@ -604,7 +604,7 @@ makeenv(env) ep = env; if (TT && *TT) { - strncat(termbuf, TT, sizeof(termbuf)-strlen(termbuf)-1); + strncat(termbuf, TT, sizeof(termbuf)-strlen(termbuf)); termbuf[sizeof(termbuf)-1] = '\0'; *ep++ = termbuf; }