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:
@@ -1085,7 +1085,7 @@ char logtext[BIG_BUFFER_SIZE+1];
|
|||||||
|
|
||||||
|
|
||||||
BADARGS(2,2," text");
|
BADARGS(2,2," text");
|
||||||
strmcpy(logtext,argv[1],BIG_BUFFER_SIZE);
|
strlcpy(logtext, argv[1], sizeof logtext);
|
||||||
putlog(LOG_CRAP,"*","%s",logtext);
|
putlog(LOG_CRAP,"*","%s",logtext);
|
||||||
return TCL_OK;
|
return TCL_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user