sfeed

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

commit 2496875b7486ea96cff9b95d87289f820a004a4e
parent e5b0d4889556257a15027e729233e0c5d7e25d30
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu,  4 Jul 2019 22:06:22 +0200

sfeed_gph: escape prefix path

Diffstat:
Msfeed_gph.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed_gph.c b/sfeed_gph.c @@ -138,8 +138,8 @@ main(int argc, char *argv[]) /* append directory item to index */ fprintf(fpindex, "[1|"); gphlink(fpindex, name, strlen(name)); - fprintf(fpindex, " (%lu/%lu)|%s", - f.totalnew, f.total, prefixpath); + fprintf(fpindex, " (%lu/%lu)|", f.totalnew, f.total); + gphlink(fpindex, prefixpath, strlen(prefixpath)); gphlink(fpindex, path, strlen(path)); fputs("|server|port]\n", fpindex); }