From 3db6262eecfeebfbe94efd6c8fd8ba0d00874934 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 6 Jan 2020 20:50:53 +1030 Subject: pagebar generation: don't asdd .html to link --- pages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages.c b/pages.c index c2fadd5..47248b1 100644 --- a/pages.c +++ b/pages.c @@ -503,7 +503,7 @@ char int i; size_t freespace = size; /* gross hack, sxprintf returns the number of chars written, keep track of our freespace */ - freespace -= snprintf(buff, freespace, "
prev ", (currentpage == 1) ? pagecount : currentpage-1); + freespace -= snprintf(buff, freespace, "
prev ", (currentpage == 1) ? pagecount : currentpage-1); if (freespace <= 0) {fprintf(stderr, "out of space in buffer for generatepagebar()\n"); return NULL;} strncat(bar, buff, freespace); for (int i = 1; i <= pagecount; i++) @@ -548,7 +548,7 @@ writeposts(const int *posts, size_t totalposts, const char *outfile, int current while (stop > (totalposts)) stop--; - printf("page number is %d, post range is %d-%d, output is: %s\n", currentpage, start, stop, outfilename); + printf("page number is %d\n", currentpage); int post; /* write posts to a temp file */ char source[512]; -- cgit v1.2.3