aboutsummaryrefslogtreecommitdiffstats
path: root/composer
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 /composer
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
Diffstat (limited to 'composer')
-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);
014-07-231-1/+1 * - Fix plist dependent on optionsamdmi32014-06-261-20/+9 * - Switch to USES=libtool, drop .la filesamdmi32014-06-261-1/+2 * - Update devel/libestr from 0.1.8 to 0.1.9brd2014-05-161-1/+1 * - Upgrade sysutils/rsyslog7 to 7.6.0, sysutils/rsyslog7-devel to 7.5.8 [1], a...brd2014-02-211-3/+7 * - Update rsyslog7 to 7.4.7. Finally stagify thanks to help from bapt@ !brd2013-12-141-24/+15 * devel/json-c: update to 0.11wg2013-11-091-1/+2 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * only ryslog7 now has rsyslog-<version> package name.bapt2013-09-181-1/+1 * Remove tests for unsupported FreeBSD versionsbapt2013-09-141-4/+0 * - Update sysutils/rsyslog7 to 7.4.4brd2013-09-061-5/+11 * Add an explicit dependency on pkgconfbapt2013-09-031-4/+2 * - Update sysutils/rsyslog7 to 7.4.3brd2013-08-211-6/+6 * - Update portscout for rsyslog7brd2013-05-261-3/+1 * - Update sysutils/rsyslog7 to 7.2.7brd2013-05-261-11/+29 * Chase security/libgcrypt updateehaupt2013-05-041-2/+2 * - Fix cases where 2 USES= were usedbdrewery2013-05-011-2/+2 * Finish converting the whole ports tree to USES=pkgconfigbapt2013-04-231-4/+4 * - Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: sysutils)gahr2013-02-281-1/+0 * - Remove trailing slash from devel/json-c LIB_DEPENDS originbdrewery2013-02-111-1/+1 * - Add UPDATING entry for gnutls updatenovel2013-02-061-2/+2 * - Add rsyslog 7.2.4brd2013-01-02