Use strlcpy, rather than strmcpy, in split_CTCP().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@364 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1637,8 +1637,8 @@ void BX_split_CTCP(char *raw_message, char *ctcp_dest, char *after_ctcp)
|
||||
}
|
||||
|
||||
*ctcp_end++ = 0;
|
||||
strmcpy(ctcp_dest, ctcp_start, IRCD_BUFFER_SIZE-2);
|
||||
strmcpy(after_ctcp, ctcp_end, IRCD_BUFFER_SIZE-2);
|
||||
strlcpy(ctcp_dest, ctcp_start, IRCD_BUFFER_SIZE - 2);
|
||||
strlcpy(after_ctcp, ctcp_end, IRCD_BUFFER_SIZE - 2);
|
||||
|
||||
return; /* All done! */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user