From f5ef9ae80d32daac22fc7fdb8b2f17304ff7e991 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sun, 13 Oct 2013 20:28:11 +0000 Subject: [PATCH] Use strlcat, rather than strmcat, in function_ftime(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@391 13b04d17-f746-0410-82c6-800466cd88b0 --- source/functions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/functions.c b/source/functions.c index e1e8df3..512a306 100644 --- a/source/functions.c +++ b/source/functions.c @@ -5451,7 +5451,7 @@ BUILT_IN_FUNCTION(function_ftime, words) #ifdef PUBLIC_ACCESS RETURN_INT(0); #else - char FileBuf[BIG_BUFFER_SIZE+1]; + char FileBuf[BIG_BUFFER_SIZE]; char *filename, *fullname; struct stat s; @@ -5476,8 +5476,8 @@ BUILT_IN_FUNCTION(function_ftime, words) else { getcwd(FileBuf, BIG_BUFFER_SIZE); - strmcat(FileBuf, "/", BIG_BUFFER_SIZE); - strmcat(FileBuf, filename, BIG_BUFFER_SIZE); + strlcat(FileBuf, "/", sizeof FileBuf); + strlcat(FileBuf, filename, sizeof FileBuf); } #if defined(__EMX__) || defined(WINNT) convert_dos(FileBuf);