From ea5aa01f87ef600b022dddbc2682855197fa5aaf Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Wed, 18 Sep 2013 23:28:07 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in cluster(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@372 13b04d17-f746-0410-82c6-800466cd88b0 --- source/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/misc.c b/source/misc.c index 16ae9e8..c09445a 100644 --- a/source/misc.c +++ b/source/misc.c @@ -3188,9 +3188,9 @@ char *cluster (char *hostname) if (ident_len <= 9) { /* copy ident@ */ - strmcpy(result, hostname, ident_len + 1); + strlcpy(result, hostname, ident_len + 1); } else { - strmcpy(result, hostname, 8); + strlcpy(result, hostname, 8); result[8] = '*'; result[9] = '@'; result[10] = '\0';