diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-04 22:38:50 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-04 22:38:50 +0000 |
commit | b78bc4f6f5aae4fcb9d4b970b8a51265eec665b6 (patch) | |
tree | b8f12bd1306119221a0d39cfa9305f7fa78542a3 /usr.sbin | |
parent | 6410f15e3d8ebc6a933e3cb2909d35be8606b6cd (diff) |
strcat->strlcat, ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pppd/chat/chat.c | 6 |
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; |