src/protocols/irc/irc.c

changeset 7653
52c1a10f482e
parent 7323
ed430996905d
child 7711
547a876b1aec
equal deleted inserted replaced
7652:d60ba2565661 7653:52c1a10f482e
352 irc->inbuflen += IRC_INITIAL_BUFSIZE; 352 irc->inbuflen += IRC_INITIAL_BUFSIZE;
353 irc->inbuf = g_realloc(irc->inbuf, irc->inbuflen); 353 irc->inbuf = g_realloc(irc->inbuf, irc->inbuflen);
354 } 354 }
355 355
356 if ((len = read(irc->fd, irc->inbuf + irc->inbufused, IRC_INITIAL_BUFSIZE - 1)) < 0) { 356 if ((len = read(irc->fd, irc->inbuf + irc->inbufused, IRC_INITIAL_BUFSIZE - 1)) < 0) {
357 gaim_connection_error(gc, "Read error"); 357 gaim_connection_error(gc, _("Read error"));
358 return; 358 return;
359 } else if (len == 0) { 359 } else if (len == 0) {
360 /* Remote closed the connection, probably */ 360 /* Remote closed the connection, probably */
361 return; 361 return;
362 } 362 }

mercurial