summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-06 20:53:10 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-06 20:53:10 +1030
commitb619febca9f3b283ab75a7686a1874ed10072330 (patch)
tree0c8c5962a0d0d6ceacb13da0e8331e9bb96d613f
parent3db6262eecfeebfbe94efd6c8fd8ba0d00874934 (diff)
downloadwebsitegenerator-b619febca9f3b283ab75a7686a1874ed10072330.tar.gz
websitegenerator-b619febca9f3b283ab75a7686a1874ed10072330.zip
pagebar generation: don't add .html to link (proper)
-rw-r--r--pages.c4
1 files 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, "<a href='%d.html'>%d</a> ", i, i);
+ freespace -= snprintf(buff, freespace, "<a href='%d'>%d</a> ", i, i);
}
strncat(bar, buff, freespace);
}
- freespace -= snprintf(buff, freespace, "<a href='%d.html'>next</a></div>", (currentpage == pagecount) ? 1 : currentpage+1);
+ freespace -= snprintf(buff, freespace, "<a href='%d'>next</a></div>", (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;