summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-06 23:13:39 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-06 23:13:39 +1030
commita8750886f8e7ec6bb041817d6ae7cab81165237f (patch)
tree643cbdf93c5f82dcc528a5e9d064a6bf3b42570c
parent6698dc20ecfac0f38d2f7eaac04c44e29ae8ebea (diff)
parentb619febca9f3b283ab75a7686a1874ed10072330 (diff)
downloadwebsitegenerator-a8750886f8e7ec6bb041817d6ae7cab81165237f.tar.gz
websitegenerator-a8750886f8e7ec6bb041817d6ae7cab81165237f.zip
Merge branch 'master' of ssh://danieljon.es:6669/home/daniel/git/websitegenerator
-rw-r--r--pages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages.c b/pages.c
index 494d7f8..51509cf 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;