Use strlcpy, rather than strmcpy, in window_log().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@329 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -3438,7 +3438,7 @@ static Window *window_log (Window *window, char **args, char *usage)
|
|||||||
else if (!(logfile = get_string_var(LOGFILE_VAR)))
|
else if (!(logfile = get_string_var(LOGFILE_VAR)))
|
||||||
logfile = empty_string;
|
logfile = empty_string;
|
||||||
|
|
||||||
strmcpy(buffer, logfile, BIG_BUFFER_SIZE);
|
strlcpy(buffer, logfile, sizeof buffer);
|
||||||
|
|
||||||
if (add_ext)
|
if (add_ext)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user