aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/gmime-utils.c')
-rw-r--r--camel/gmime-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/gmime-utils.c b/camel/gmime-utils.c
index 1b1f1aa1e1..7ceb0219ec 100644
--- a/camel/gmime-utils.c
+++ b/camel/gmime-utils.c
@@ -221,7 +221,8 @@ get_header_array_from_stream (CamelStream *stream)
}
} else {
- if (nb_char_read <0) {
+ if (camel_stream_eos (stream)) {
+
end_of_file=TRUE;
end_of_header_line = TRUE;
@@ -275,7 +276,7 @@ gmime_read_line_from_stream (CamelStream *stream)
}
} else {
- if (nb_char_read <0)
+ if (camel_stream_eos (stream))
end_of_stream = TRUE;
}