From 501d96080003c648098913691f9d37f47c346315 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sun, 13 Oct 2013 20:26:23 +0000 Subject: [PATCH] Use strlcat, rather than strmcat, in function_fsize(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@390 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 80ea372..e1e8df3 100644 --- a/source/functions.c +++ b/source/functions.c @@ -4124,7 +4124,7 @@ BUILT_IN_FUNCTION(function_fsize, words) #ifdef PUBLIC_ACCESS RETURN_INT(0); #else - char FileBuf[BIG_BUFFER_SIZE+1]; + char FileBuf[BIG_BUFFER_SIZE]; char *filename, *fullname; struct stat stat_buf; off_t filesize = 0; @@ -4151,8 +4151,8 @@ BUILT_IN_FUNCTION(function_fsize, 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)