diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-07-04 22:06:22 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-07-04 22:06:22 +0200 |
commit | 2496875b7486ea96cff9b95d87289f820a004a4e (patch) | |
tree | 1ba62f0da08e27bc10e7547da64db2afe811dc0f | |
parent | e5b0d4889556257a15027e729233e0c5d7e25d30 (diff) |
sfeed_gph: escape prefix path
-rw-r--r-- | sfeed_gph.c | 4 |
1 files 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); } |