From bfb9dc3d54db746eea031ee3233a5014e819f825 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sun, 20 Oct 2013 18:32:07 +0000 Subject: [PATCH] Use strlcat, rather than strmcat, in the definition of HANDLE_TYPE(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@401 13b04d17-f746-0410-82c6-800466cd88b0 --- source/ignore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ignore.c b/source/ignore.c index 7c4ac18..0c96ea3 100644 --- a/source/ignore.c +++ b/source/ignore.c @@ -625,9 +625,9 @@ long ret = -1; #define HANDLE_TYPE(x, y) \ if ((tmp->dont & x) == x) \ - strmcat(buffer, " DONT-" y, BIG_BUFFER_SIZE); \ + strlcat(buffer, " DONT-" y, sizeof buffer); \ else if ((tmp->type & x) == x) \ - strmcat(buffer, " " y, BIG_BUFFER_SIZE); \ + strlcat(buffer, " " y, sizeof buffer); \ else if ((tmp->high & x) == x) \ strmopencat(buffer, BIG_BUFFER_SIZE, space, high, y, high, NULL);