diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 19:23:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 19:23:35 +0000 |
commit | 33d1e7e11841c4b322024db48896307aebfdf064 (patch) | |
tree | d8a369effce880462c7dd398b053e684a7902084 /usr.sbin/pppd | |
parent | 64a56d7da49c94d367f89fc8570982d86ff15b46 (diff) |
more strlcat
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r-- | usr.sbin/pppd/chat/chat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c index 2e15eb6d3de..c04dbc56686 100644 --- a/usr.sbin/pppd/chat/chat.c +++ b/usr.sbin/pppd/chat/chat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chat.c,v 1.16 2002/02/19 19:39:40 millert Exp $ */ +/* $OpenBSD: chat.c,v 1.17 2002/05/29 19:23:34 deraadt 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.16 2002/02/19 19:39:40 millert Exp $"; +static char rcsid[] = "$OpenBSD: chat.c,v 1.17 2002/05/29 19:23:34 deraadt Exp $"; #endif #endif @@ -1398,7 +1398,8 @@ register char *string; alarm(0); alarmed = 0; exit_code = n + 4; - strcpy(fail_reason = fail_buffer, abort_string[n]); + strlcpy(fail_buffer, abort_string[n], sizeof fail_buffer); + fail_reason = fail_buffer; return (0); } } |