AmendHub

Download:

jcs

/

wallops

/

amendments

/

134

irc: nnicks is a long, fix format in panic


jcs made amendment 134 about 1 year ago
--- irc.c Tue Sep 24 17:00:08 2024 +++ irc.c Thu Sep 26 14:31:20 2024 @@ -1552,7 +1552,7 @@ irc_add_nick_to_channel(struct irc_channel *channel, c sizeof(struct irc_channel_nick), channel->nicks_size); if (channel->nicks == NULL) - panic("Out of memory for %d nicks (%ld bytes)", + panic("Out of memory for %ld nicks (%ld bytes)", channel->nnicks, sizeof(struct irc_channel_nick) * channel->nicks_size); memset(&channel->nicks[channel->nnicks], 0,