aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-24 04:41:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-24 04:41:26 +0800
commite8e4e125f60b84c012ed2b1379329f73d1bb388d (patch)
treee76ea2be5c8c79d74a5580fdc8ce16bd1af6ee15 /mail/em-format-html.c
parent991dd5c662348b9d4ff7bc41a3788a8ddd55991e (diff)
downloadgsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar.gz
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar.bz2
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar.lz
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar.xz
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.tar.zst
gsoc2013-evolution-e8e4e125f60b84c012ed2b1379329f73d1bb388d.zip
Use sizeof() to decide how big buffer is so that in the future, if we
2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (emfh_gethttp): Use sizeof() to decide how big buffer is so that in the future, if we change the length of bufefr, things will Just Work (tm). svn path=/trunk/; revision=25166
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index eed3d3e093..1501cf0ee6 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -466,7 +466,7 @@ static void emfh_gethttp(struct _EMFormatHTMLJob *job, int cancelled)
do {
/* FIXME: progress reporting in percentage, can we get the length always? do we care? */
- n = camel_stream_read(instream, buffer, 1500);
+ n = camel_stream_read(instream, buffer, sizeof (buffer));
if (n > 0) {
camel_operation_progress_count(NULL, total);
total += n;