Use strlcpy, rather than strmcpy, in tcl_putlog().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@339 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-17 05:13:15 +00:00
parent 8a0d84b3ab
commit 905bceb348

View File

@@ -1085,7 +1085,7 @@ char logtext[BIG_BUFFER_SIZE+1];
BADARGS(2,2," text");
strmcpy(logtext,argv[1],BIG_BUFFER_SIZE);
strlcpy(logtext, argv[1], sizeof logtext);
putlog(LOG_CRAP,"*","%s",logtext);
return TCL_OK;
}