aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-rdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution/e-summary-rdf.c')
-rw-r--r--my-evolution/e-summary-rdf.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c
index 24c8de3cc6..abc4f918c3 100644
--- a/my-evolution/e-summary-rdf.c
+++ b/my-evolution/e-summary-rdf.c
@@ -116,17 +116,17 @@ layer_find_url (xmlNodePtr node,
if (*r == ' ') r++; /* Fix UF bug */
while (*r) {
- if (memcmp (r, "&", 5) == 0) {
+ if (strncmp (r, "&", 5) == 0) {
*w++ = '&';
r += 5;
continue;
}
- if (memcmp (r, "<", 4) == 0) {
+ if (strncmp (r, "<", 4) == 0) {
*w++ = '<';
r += 4;
continue;
}
- if (memcmp (r, "&gt;", 4) == 0) {
+ if (strncmp (r, "&gt;", 4) == 0) {
*w++ = '>';
r += 4;
continue;
@@ -229,12 +229,8 @@ tree_walk (xmlNodePtr root,
t = layer_find(channel->childs, "title", "");
u = layer_find(channel->childs, "link", "");
- if (*u != '\0') {
- char *full;
-
- full = g_strdup_printf ("<a href=\"%s\">", u);
- g_string_append (html, full);
- }
+ if (*u != '\0')
+ g_string_sprintfa (html, "<a href=\"%s\">", u);
t = e_utf8_from_locale_string (t);
g_string_append (html, t);
g_free (t);