| 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 } |