summaryrefslogtreecommitdiff
path: root/pages.c
diff options
context:
space:
mode:
Diffstat (limited to 'pages.c')
-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;