Use strlcpy, rather than strmcpy, in function_rot13().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@347 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-17 06:03:32 +00:00
parent 23d1f6ad74
commit 86e3064d2c

View File

@@ -4395,7 +4395,7 @@ BUILT_IN_FUNCTION(function_rot13, input)
char temp[BIG_BUFFER_SIZE+1];
register char *p = NULL;
int rotate = 13;
strmcpy(temp, input, BIG_BUFFER_SIZE);
strlcpy(temp, input, sizeof temp);
for (p = temp; *p; p++) {
if (*p >= 'A' && *p <='Z')
*p = (*p - 'A' + rotate) % 26 + 'A';