summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--plugins/dns/dns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/dns/dns.c b/plugins/dns/dns.c
index 2bf58195..eb9bb7ee 100644
--- a/plugins/dns/dns.c
+++ b/plugins/dns/dns.c
@@ -67,9 +67,11 @@ 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)
+		if (ph->xchat_read_fd (ph, source, buf + i, &len) != 0)
+		{
 			return -1;
-		if(buf[i] == '\n' || bufsize == i + 1)
+		}
+		if (buf[i] == '\n' || bufsize == i + 1)
 		{
 			buf[i] = 0;
 			return i;