commit - 7ea3864a9369086024a2d541b053963958b19899
commit + 9d3800fd15a273f23f51c1f1ab3bc75dacf6c589
blob - 24d65651611411d1d83447dad0782e87617b3d2d
blob + 668f5ed6fc4c5be0bb8445531282398c7e52284c
--- src/ngircd/irc-info.c
+++ src/ngircd/irc-info.c
static bool
IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)
{
- char str[LINE_LEN + 1];
+ char str[COMMAND_LEN];
CL2CHAN *cl2chan;
CHANNEL *chan;
str, sizeof(str));
strlcat(str, Channel_Name(chan), sizeof(str));
- if (strlen(str) > (LINE_LEN - CHANNEL_NAME_LEN - 4)) {
+ if (strlen(str) > (COMMAND_LEN - CHANNEL_NAME_LEN - 4)) {
/* Line becomes too long: send it! */
if (!IRC_WriteStrClient(Client, "%s", str))
return DISCONNECTED;
strlcat(rpl, " ", sizeof(rpl));
strlcat(rpl, Client_ID(c), sizeof(rpl));
- if (strlen(rpl) > LINE_LEN - CLIENT_NICK_LEN - 4) {
+ if (strlen(rpl) > COMMAND_LEN - CLIENT_NICK_LEN - 4) {
/* Line is gwoing too long, send now */
if (!IRC_WriteStrClient(from, "%s", rpl))
return DISCONNECTED;
IRC_Send_NAMES(CLIENT * Client, CHANNEL * Chan)
{
bool is_visible, is_member;
- char str[LINE_LEN + 1];
+ char str[COMMAND_LEN];
CL2CHAN *cl2chan;
CLIENT *cl;
str, sizeof(str));
strlcat(str, Client_ID(cl), sizeof(str));
- if (strlen(str) > (LINE_LEN - CLIENT_NICK_LEN - 4)) {
+ if (strlen(str) > (COMMAND_LEN - CLIENT_NICK_LEN - 4)) {
if (!IRC_WriteStrClient(Client, "%s", str))
return DISCONNECTED;
snprintf(str, sizeof(str), RPL_NAMREPLY_MSG,