summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 19:23:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 19:23:35 +0000
commit33d1e7e11841c4b322024db48896307aebfdf064 (patch)
treed8a369effce880462c7dd398b053e684a7902084 /usr.sbin/pppd
parent64a56d7da49c94d367f89fc8570982d86ff15b46 (diff)
more strlcat
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/chat/chat.c7
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);
}
}