diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-06 23:13:39 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-06 23:13:39 +1030 |
commit | a8750886f8e7ec6bb041817d6ae7cab81165237f (patch) | |
tree | 643cbdf93c5f82dcc528a5e9d064a6bf3b42570c | |
parent | 6698dc20ecfac0f38d2f7eaac04c44e29ae8ebea (diff) | |
parent | b619febca9f3b283ab75a7686a1874ed10072330 (diff) | |
download | websitegenerator-a8750886f8e7ec6bb041817d6ae7cab81165237f.tar.gz websitegenerator-a8750886f8e7ec6bb041817d6ae7cab81165237f.zip |
Merge branch 'master' of ssh://danieljon.es:6669/home/daniel/git/websitegenerator
-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; |