diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-06 20:53:10 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-06 20:53:10 +1030 |
commit | b619febca9f3b283ab75a7686a1874ed10072330 (patch) | |
tree | 0c8c5962a0d0d6ceacb13da0e8331e9bb96d613f | |
parent | 3db6262eecfeebfbe94efd6c8fd8ba0d00874934 (diff) | |
download | websitegenerator-b619febca9f3b283ab75a7686a1874ed10072330.tar.gz websitegenerator-b619febca9f3b283ab75a7686a1874ed10072330.zip |
pagebar generation: don't add .html to link (proper)
-rw-r--r-- | pages.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |