aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-29 12:51:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-29 12:51:35 +0000
commit233f685e2a2a5033b077e9945c4b6f21fe7c5046 (patch)
tree26d6da5f375e9e4b113b87c30f379eb2f02eb655
parent27f032f4765e120b79ea6ced513ac7d32e470815 (diff)
downloadsircbot-233f685e2a2a5033b077e9945c4b6f21fe7c5046.tar.bz2
sircbot-233f685e2a2a5033b077e9945c4b6f21fe7c5046.tar.xz
increase read buffer
we dont handle situations where read input is bigger than buffer. for now we just increase the buffer size.
-rw-r--r--sircbot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sircbot.c b/sircbot.c
index 6c63e49..30f870f 100644
--- a/sircbot.c
+++ b/sircbot.c
@@ -303,7 +303,7 @@ static int irc_loop(struct irc_session *sess, struct sircbot_channel *chan,
int numchan)
{
int i, r, joined = 0;
- char buf[1024];
+ char buf[4096];
struct pollfd fds[numchan + 1];
sigset_t sigmask;
struct timespec tv;