aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-10-16 09:59:34 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-10-16 09:59:34 +0800
commitc886f7d8bc6d688c8a98385c1ed8b134a276f44f (patch)
treecb29b29ee80aac402ca690a6f44c7c33c3b7f075
parent88f393a6d0aad54fcdb8d8a77047816886139dc8 (diff)
downloadgsoc2013-evolution-c886f7d8bc6d688c8a98385c1ed8b134a276f44f.tar.gz
gsoc2013-evolution-c886f7d8bc6d688c8a98385c1ed8b134a276f44f.tar.zst
gsoc2013-evolution-c886f7d8bc6d688c8a98385c1ed8b134a276f44f.zip
don't write strings longer than they actually are.
2001-10-15 Larry Ewing <lewing@ximian.com> * mail-display.c (mail_error_write): don't write strings longer than they actually are. svn path=/trunk/; revision=13693
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-display.c11
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b71ece8f04..0700991a68 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-15 Larry Ewing <lewing@ximian.com>
+
+ * mail-display.c (mail_error_write): don't write strings longer
+ than they actually are.
+
2001-10-15 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_destroy): Remove the mark_seen
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 71a1ccbaf6..f6fc6d7080 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -37,6 +37,7 @@
#include <gtkhtml/htmlobject.h> /* XXX */
#include <gtkhtml/htmltext.h> /* XXX */
#include <gtkhtml/htmlinterval.h> /* XXX */
+#include <gtkhtml/gtkhtml-stream.h>
#include "e-util/e-html-utils.h"
#include "e-util/e-mktemp.h"
@@ -1322,11 +1323,13 @@ mail_error_write (GtkHTML *html, GtkHTMLStream *stream,
va_end (ap);
htmltext = e_text_to_html (buf, E_TEXT_TO_HTML_CONVERT_NL | E_TEXT_TO_HTML_CONVERT_URLS);
- gtk_html_write (html, stream, "<blockquote><em><font color=red>", 32);
- gtk_html_write (html, stream, htmltext, strlen (htmltext));
- gtk_html_write (html, stream, "</font></em></blockquote>", 29);
- g_free (htmltext);
g_free (buf);
+
+ gtk_html_stream_printf (stream, "<blockquote><em><font color=red>");
+ gtk_html_stream_write (stream, htmltext, strlen (htmltext));
+ gtk_html_stream_printf (stream, "</font></em></blockquote>");
+
+ g_free (htmltext);
}
static void