Convert sprintf calls to snprintf. From pvaldes.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@457 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -418,7 +418,7 @@ void notify_userhost_dispatch (UserhostItem *stuff, char *nick, char *text)
|
|||||||
{
|
{
|
||||||
char userhost[BIG_BUFFER_SIZE + 1];
|
char userhost[BIG_BUFFER_SIZE + 1];
|
||||||
|
|
||||||
snprintf(userhost, BIG_BUFFER_SIZE, "%s@%s", stuff->user, stuff->host);
|
snprintf(userhost, sizeof userhost, "%s@%s", stuff->user, stuff->host);
|
||||||
notify_userhost_reply(stuff->nick, userhost);
|
notify_userhost_reply(stuff->nick, userhost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user