Use strlcpy, rather than strmcpy, in tcl_putscr().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@343 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1169,8 +1169,7 @@ char s[BIG_BUFFER_SIZE+1],*p;
|
|||||||
|
|
||||||
|
|
||||||
BADARGS(2,2," \"text\"");
|
BADARGS(2,2," \"text\"");
|
||||||
strmcpy(s,argv[1],BIG_BUFFER_SIZE-1);
|
strlcpy(s, argv[1], sizeof s);
|
||||||
s[BIG_BUFFER_SIZE-1]=0;
|
|
||||||
if ((p=strchr(s,'\n')))
|
if ((p=strchr(s,'\n')))
|
||||||
*p = 0;
|
*p = 0;
|
||||||
if ((p=strchr(s,'\r')))
|
if ((p=strchr(s,'\r')))
|
||||||
|
|||||||
Reference in New Issue
Block a user