diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-14 03:15:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-14 03:15:00 +0000 |
commit | e1987da6b862c68885e78df042fbf00929d38482 (patch) | |
tree | 137d4ab50d76a5073855486c2c97046f099f0c24 /usr.sbin/pppd/main.c | |
parent | 52a2349f13ab2da84a31680fbdab1ddf5dc103a2 (diff) |
obvious spring cleanup
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r-- | usr.sbin/pppd/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 4c65b55580e..441ecbac03e 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.40 2003/04/04 20:25:07 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.41 2003/04/14 03:14:59 deraadt Exp $ */ /* * main.c - Point-to-Point Protocol main module @@ -46,7 +46,7 @@ #if 0 static char rcsid[] = "Id: main.c,v 1.49 1998/05/05 05:24:17 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.40 2003/04/04 20:25:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.41 2003/04/14 03:14:59 deraadt Exp $"; #endif #endif @@ -1341,7 +1341,7 @@ pr_log(void *arg, char *fmt, ...) syslog(LOG_DEBUG, "%s", line); linep = line; } - strcpy(linep, buf); + strlcpy(linep, buf, line + sizeof line - linep); linep += n; } |