From 86e3064d2c218fe7523ecb65dd2a158eab002c31 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 06:03:32 +0000 Subject: [PATCH] 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 --- source/functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/functions.c b/source/functions.c index 83ca704..5a4d94f 100644 --- a/source/functions.c +++ b/source/functions.c @@ -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';