Reformat the DNS plugin a bit while we're at it

This commit is contained in:
Berke Viktor 2012-07-21 16:16:30 +02:00
parent d559401c50
commit 92cb1dc12c
1 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,9 @@ waitline (void *source, char *buf, int bufsize)
len = 1;
/* we can't read() here, due to glib's giowin32 */
if (ph->xchat_read_fd (ph, source, buf + i, &len) != 0)
{
return -1;
}
if (buf[i] == '\n' || bufsize == i + 1)
{
buf[i] = 0;