diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 35be879162..e0f62f8dff 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -689,8 +689,8 @@ read_file_content (int fd) retval = select (fd + 1, &rdset, NULL, NULL, &tv); if (retval) { - n = 0; - while (n >= 0 || errno == EINTR) { + n = 1; + while (n > 0 || errno == EINTR) { n = read (fd, buf, sizeof (buf)); if (n > 0) g_byte_array_append (contents, buf, n); |