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
This commit is contained in:
@@ -5451,7 +5451,7 @@ BUILT_IN_FUNCTION(function_ftime, words)
|
|||||||
#ifdef PUBLIC_ACCESS
|
#ifdef PUBLIC_ACCESS
|
||||||
RETURN_INT(0);
|
RETURN_INT(0);
|
||||||
#else
|
#else
|
||||||
char FileBuf[BIG_BUFFER_SIZE+1];
|
char FileBuf[BIG_BUFFER_SIZE];
|
||||||
char *filename, *fullname;
|
char *filename, *fullname;
|
||||||
struct stat s;
|
struct stat s;
|
||||||
|
|
||||||
@@ -5476,8 +5476,8 @@ BUILT_IN_FUNCTION(function_ftime, words)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
getcwd(FileBuf, BIG_BUFFER_SIZE);
|
getcwd(FileBuf, BIG_BUFFER_SIZE);
|
||||||
strmcat(FileBuf, "/", BIG_BUFFER_SIZE);
|
strlcat(FileBuf, "/", sizeof FileBuf);
|
||||||
strmcat(FileBuf, filename, BIG_BUFFER_SIZE);
|
strlcat(FileBuf, filename, sizeof FileBuf);
|
||||||
}
|
}
|
||||||
#if defined(__EMX__) || defined(WINNT)
|
#if defined(__EMX__) || defined(WINNT)
|
||||||
convert_dos(FileBuf);
|
convert_dos(FileBuf);
|
||||||
|
|||||||
Reference in New Issue
Block a user