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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user