aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-component-preview.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-10-17 02:15:43 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-10-17 02:15:43 +0800
commit9c6bce4c376a2add62ed8ce0b2fef36e171161ff (patch)
treef3646a6b4b71c555590f0205453bc4fc7767996d /calendar/gui/e-cal-component-preview.c
parent3c39e9cc89192c13787b7838b8054793ab624839 (diff)
downloadgsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.gz
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.bz2
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.lz
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.xz
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.zst
gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.zip
Fixes #332101
svn path=/trunk/; revision=32902
Diffstat (limited to 'calendar/gui/e-cal-component-preview.c')
-rw-r--r--calendar/gui/e-cal-component-preview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c
index 5a6a056d8c..d38ec5f195 100644
--- a/calendar/gui/e-cal-component-preview.c
+++ b/calendar/gui/e-cal-component-preview.c
@@ -272,16 +272,16 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone
for (node = l; node != NULL; node = node->next) {
gint i;
- GString *string = g_string_new ("");;
+ GString *string = g_string_new (NULL);;
text = * (ECalComponentText *) node->data;
for (i = 0; i < strlen (text.value ? text.value : 0); i++) {
if (text.value[i] == '\n')
- string = g_string_append (string, "<BR>");
+ string = g_string_append_len (string, "<BR>", 4);
else if (text.value[i] == '<')
- string = g_string_append (string, "&lt;");
+ string = g_string_append_len (string, "&lt;", 4);
else if (text.value[i] == '>')
- string = g_string_append (string, "&gt;");
+ string = g_string_append_len (string, "&gt;", 4);
else
string = g_string_append_c (string, text.value[i]);
}