aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-12-18 04:05:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-18 04:05:55 +0800
commit4418d0b09aba4c26aa5cd41bbc75310a7aef1ba2 (patch)
treecc69f3eec96217dd4f9c266b39b936cb4713590c
parent1b8e8b861ea517a296ff4980f3c988926dc41586 (diff)
downloadgsoc2013-evolution-4418d0b09aba4c26aa5cd41bbc75310a7aef1ba2.tar.gz
gsoc2013-evolution-4418d0b09aba4c26aa5cd41bbc75310a7aef1ba2.tar.zst
gsoc2013-evolution-4418d0b09aba4c26aa5cd41bbc75310a7aef1ba2.zip
argh, only loop while n > 0 not >= 0 since 0 will mean "end-of-file"
svn path=/trunk/; revision=15134
-rw-r--r--composer/e-msg-composer.c4
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);