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
This commit is contained in:
Tim Cava
2013-09-18 23:41:46 +00:00
parent ea5aa01f87
commit 21612025eb

View File

@@ -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;
}