From b78bc4f6f5aae4fcb9d4b970b8a51265eec665b6 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Fri, 4 Apr 2003 22:38:50 +0000 Subject: strcat->strlcat, ok millert@ --- usr.sbin/pppd/chat/chat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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; -- cgit v1.2.3