# HG changeset patch # User Eric Warmenhoven # Date 1005867174 0 # Node ID 4c6ad3d9db3f2836d576020344ee1eaa9725f0d8 # Parent a34321aefe4f7ef2207c4e7cbf6ef3e0afe8f362 [gaim-migrate @ 2740] ok committer: Tailor Script diff -r a34321aefe4f -r 4c6ad3d9db3f src/gtkspell.c --- 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; }