fix duplicate allocation of irc buffers

This commit is contained in:
Aaron Blakely 2024-02-23 20:00:26 -06:00
parent 4d025dde85
commit aa5cfa756f

View File

@ -68,9 +68,6 @@ void irc_connect(struct irc_conn *bot)
struct addrinfo hints; struct addrinfo hints;
struct addrinfo *res, *r; struct addrinfo *res, *r;
bot->in = calloc(60000, sizeof(char));
bot->out = calloc(60000, sizeof(char));
memset(&hints, 0, sizeof hints); memset(&hints, 0, sizeof hints);
hints.ai_family = AF_UNSPEC; hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;