changeset 2727:4c6ad3d9db3f

[gaim-migrate @ 2740] ok committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Nov 2001 23:32:54 +0000
parents a34321aefe4f
children 16df889d81e2
files src/gtkspell.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkspell.c	Thu Nov 15 23:21:04 2001 +0000
+++ b/src/gtkspell.c	Thu Nov 15 23:32:54 2001 +0000
@@ -85,7 +85,7 @@
 	while (!buf || (end = strchr(buf, '\n')) == NULL) {
 		char space[1024];
 		int ret = read(fd_read[0], space, 1023);
-		if (ret < 0) {
+		if (ret <= 0) {
 			error_print("read: %s\n", strerror(errno));
 			return NULL;
 		}