From 3b94f8a0d302e3a08fd645b248baa4aa5dda7d77 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 4 Apr 2003 20:28:58 +0000 Subject: strlcat; Hans-Joerg.Hoexer@yerbouti.franken.de --- usr.sbin/ppp/pppctl/pppctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/pppctl') diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c index 2a6e2282ad0..fd35621ecfc 100644 --- a/usr.sbin/ppp/pppctl/pppctl.c +++ b/usr.sbin/ppp/pppctl/pppctl.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pppctl.c,v 1.10 2003/04/04 20:25:06 deraadt Exp $ + * $Id: pppctl.c,v 1.11 2003/04/04 20:28:57 deraadt Exp $ */ #include @@ -452,7 +452,7 @@ main(int argc, char **argv) *next = '\0'; strlcpy(Buffer, start, sizeof Buffer); Buffer[sizeof(Buffer)-2] = '\0'; - strcat(Buffer, "\n"); + strlcat(Buffer, "\n", sizeof Buffer); if (verbose) write(1, Buffer, strlen(Buffer)); write(fd, Buffer, strlen(Buffer)); -- cgit v1.2.3