From b619febca9f3b283ab75a7686a1874ed10072330 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 6 Jan 2020 20:53:10 +1030 Subject: pagebar generation: don't add .html to link (proper) --- pages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages.c b/pages.c index 47248b1..8f82046 100644 --- a/pages.c +++ b/pages.c @@ -515,11 +515,11 @@ char } else { - freespace -= snprintf(buff, freespace, "%d ", i, i); + freespace -= snprintf(buff, freespace, "%d ", i, i); } strncat(bar, buff, freespace); } - freespace -= snprintf(buff, freespace, "next", (currentpage == pagecount) ? 1 : currentpage+1); + freespace -= snprintf(buff, freespace, "next", (currentpage == pagecount) ? 1 : currentpage+1); if (freespace <= 0) {fprintf(stderr, "out of space in buffer for generatepagebar()\n"); return NULL;} strncat(bar, buff, freespace); return bar; -- cgit v1.2.3