From 29be9299ef304ef77d96bfb661dbed3828b4aa26 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 1 Aug 2015 00:33:47 +0200 Subject: sfeed_mbox: xmlencode link for HTML mail, simplify a bit --- sfeed_mbox.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sfeed_mbox.c b/sfeed_mbox.c index fdcd17d..5c531e3 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -61,15 +61,13 @@ printfeed(FILE *fp, const char *feedname) if (!strcmp(fields[FieldContentType], "html")) { fputs("

Link: ", stdout); - print(fields[FieldLink], stdout, fputc); + fputs(fields[FieldLink], stdout); fputs("

\n\n", stdout); decodefield(fields[FieldContent], stdout, fputc); } else { - fputs("Link: ", stdout); - print(fields[FieldLink], stdout, fputc); - fputs("\n\n", stdout); + printf("Link: %s\n\n", fields[FieldLink]); decodefield(fields[FieldContent], stdout, fputc); } fputs("\n\n", stdout); -- cgit v1.2.3