sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 09160d2f4e699a72ccbb58c76b32a6670d965860
parent 9c05ddec777c0b43f19f9d277f7167b8feb23456
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 24 Jun 2018 15:17:04 +0200

sfeed_opml_import: escape ' properly

the shell escape \' was a mistake.

Diffstat:
Msfeed_opml_import.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c @@ -21,9 +21,12 @@ printsafe(const char *s) for (; *s; s++) { if (iscntrl((int)*s)) continue; - if (*s == '\\' || *s == '\'') - putchar('\\'); - putchar((int)*s); + else if (*s == '\\') + fputs("\\\\", stdout); + else if (*s == '\'') + fputs("'\\''", stdout); + else + putchar((int)*s); } }