From 49da785b1ad151fad5c8a6d45f9b8eaf52298b7e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 6 Apr 2003 18:57:45 +0000 Subject: kill another strcat; ok krw --- usr.bin/rdist/message.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin/rdist') diff --git a/usr.bin/rdist/message.c b/usr.bin/rdist/message.c index ed886218c23..3dd1d5eaf90 100644 --- a/usr.bin/rdist/message.c +++ b/usr.bin/rdist/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.11 2003/04/05 20:31:58 deraadt Exp $ */ +/* $OpenBSD: message.c,v 1.12 2003/04/06 18:57:44 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: message.c,v 6.24 1996/07/19 17:00:35 michaelc Exp $"; #else static char RCSid[] = -"$OpenBSD: message.c,v 1.11 2003/04/05 20:31:58 deraadt Exp $"; +"$OpenBSD: message.c,v 1.12 2003/04/06 18:57:44 deraadt Exp $"; #endif static char sccsid[] = "@(#)common.c"; @@ -130,8 +130,9 @@ extern void msgprconfig() if (IS_ON(msgfacility[i].mf_msgtypes, msgtypes[x].mt_type)) { if (x > 0) - (void) strcat(buf, ","); - (void) strcat(buf, msgtypes[x].mt_name); + (void) strlcat(buf, ",", sizeof buf); + (void) strlcat(buf, msgtypes[x].mt_name, + sizeof buf); } debugmsg(DM_MISC, "%s", buf); } -- cgit v1.2.3