From 2496875b7486ea96cff9b95d87289f820a004a4e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 4 Jul 2019 22:06:22 +0200 Subject: sfeed_gph: escape prefix path --- sfeed_gph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfeed_gph.c b/sfeed_gph.c index 94a99d3..9993100 100644 --- 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); } -- cgit v1.2.3