From 44c4f2baf9ce3330a2464061494dd101b7adb203 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 06:05:22 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in function_ftime(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@348 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 5a4d94f..7cd9703 100644 --- a/source/functions.c +++ b/source/functions.c @@ -5442,19 +5442,19 @@ BUILT_IN_FUNCTION(function_ftime, words) if ((filename = new_next_arg(words, &words))) { if (*filename == '/') - strlcpy(FileBuf, filename, BIG_BUFFER_SIZE); + strlcpy(FileBuf, filename, sizeof FileBuf); else if (*filename == '~') { if (!(fullname = expand_twiddle(filename))) RETURN_EMPTY; - strmcpy(FileBuf, fullname, BIG_BUFFER_SIZE); + strlcpy(FileBuf, fullname, sizeof FileBuf); new_free(&fullname); } #if defined(__EMX__) || defined(WINNT) else if (is_dos(filename)) - strmcpy(FileBuf, filename, BIG_BUFFER_SIZE); + strlcpy(FileBuf, filename, sizeof FileBuf); #endif else {