summaryrefslogtreecommitdiff
path: root/usr.bin/rdist/message.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-06 18:57:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-06 18:57:45 +0000
commit49da785b1ad151fad5c8a6d45f9b8eaf52298b7e (patch)
treeada6ea5d36eccad0f3ad3a13c9478de01f829765 /usr.bin/rdist/message.c
parent51ab7e02d9e6e7c9950f34bc0cc7cc72bb53bd12 (diff)
kill another strcat; ok krw
Diffstat (limited to 'usr.bin/rdist/message.c')
-rw-r--r--usr.bin/rdist/message.c9
1 files changed, 5 insertions, 4 deletions
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);
}