From e8e4e125f60b84c012ed2b1379329f73d1bb388d Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 23 Mar 2004 20:41:26 +0000 Subject: Use sizeof() to decide how big buffer is so that in the future, if we 2004-03-23 Jeffrey Stedfast * 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 --- mail/ChangeLog | 4 ++++ mail/em-format-html.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 982faecf06..f57d52913b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,9 @@ 2004-03-23 Jeffrey Stedfast + * 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). + * em-mailer-prefs.c (em_mailer_prefs_construct): Fixed the key to fetch the value from the correct location. It's junk/check_incoming, not junk/sa/check_incoming. Fixes bug #55903. 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; -- cgit v1.2.3