summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-04 22:38:50 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-04 22:38:50 +0000
commitb78bc4f6f5aae4fcb9d4b970b8a51265eec665b6 (patch)
treeb8f12bd1306119221a0d39cfa9305f7fa78542a3 /usr.sbin
parent6410f15e3d8ebc6a933e3cb2909d35be8606b6cd (diff)
strcat->strlcat, ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pppd/chat/chat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index f3c7a7d1557..5b2fc7206b2 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.19 2003/04/03 18:53:50 deraadt Exp $ */
+/* $OpenBSD: chat.c,v 1.20 2003/04/04 22:38:49 avsm Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -83,7 +83,7 @@
#if 0
static char rcsid[] = "Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: chat.c,v 1.19 2003/04/03 18:53:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: chat.c,v 1.20 2003/04/04 22:38:49 avsm Exp $";
#endif
#endif
@@ -1354,7 +1354,7 @@ register char *string;
struct tm* tm_now = localtime (&time_now);
strftime (report_buffer, 20, "%b %d %H:%M:%S ", tm_now);
- strcat (report_buffer, report_string[n]);
+ strlcat (report_buffer, report_string[n], sizeof(report_buffer));
report_string[n] = (char *) NULL;
report_gathering = 1;