From 21612025eb2fc635c17e300507f052e382805326 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Wed, 18 Sep 2013 23:41:46 +0000 Subject: [PATCH] Use strlcpy and strlcat, rather than strmcpy and strmcat, in decrypt_msg(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@373 13b04d17-f746-0410-82c6-800466cd88b0 --- source/encrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/encrypt.c b/source/encrypt.c index a0d26bc..20cc357 100644 --- a/source/encrypt.c +++ b/source/encrypt.c @@ -250,11 +250,11 @@ char *decrypt_msg (char *str, char *key) if ((ptr = do_crypt(str, key, 0)) != NULL) { - strmcpy(buffer, ptr, CRYPT_BUFFER_SIZE); + strlcpy(buffer, ptr, CRYPT_BUFFER_SIZE); new_free(&ptr); } else - strmcat(buffer, str, CRYPT_BUFFER_SIZE); + strlcat(buffer, str, CRYPT_BUFFER_SIZE); return buffer; }