aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-component-preview.c
diff options
context:
space:
mode:
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]);
}