summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/main.c6
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;
}