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:
Tim Cava
2013-08-15 10:55:09 +00:00
parent 674558ece4
commit a394019490

View File

@@ -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)
{ {