summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_frames.c3
-rw-r--r--sfeed_html.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 73c601d..da06b8b 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -211,7 +211,8 @@ main(int argc, char *argv[])
fputs("\" target=\"items\">", fpmenu);
if(f->totalnew > 0)
fputs("<b><u>", fpmenu);
- fprintf(fpmenu, "%s (%lu)", f->name, f->totalnew);
+ printxmlencoded(f->name, fpmenu);
+ fprintf(fpmenu, "(%lu)", f->totalnew);
if(f->totalnew > 0)
fputs("</u></b>", fpmenu);
fputs("</a><br/>\n", fpmenu);
diff --git a/sfeed_html.c b/sfeed_html.c
index c123411..e81e6c4 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -129,7 +129,8 @@ main(int argc, char *argv[])
fputs("\">", stdout);
if(f->totalnew > 0)
fputs("<b><u>", stdout);
- fprintf(stdout, "%s (%lu)", f->name, f->totalnew);
+ printxmlencoded(f->name, stdout);
+ fprintf(stdout, "(%lu)", f->totalnew);
if(f->totalnew > 0)
fputs("</u></b>", stdout);
fputs("</a></li>\n", stdout);