diff --git a/source/functions.c b/source/functions.c index a664589..83ca704 100644 --- a/source/functions.c +++ b/source/functions.c @@ -4114,19 +4114,19 @@ BUILT_IN_FUNCTION(function_fsize, words) if (filename && *filename) { if (*filename == '/') - strlcpy(FileBuf, filename, BIG_BUFFER_SIZE); + strlcpy(FileBuf, filename, sizeof FileBuf); else if (*filename == '~') { if (!(fullname = expand_twiddle(filename))) RETURN_INT(-1); - 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 {