summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-19 14:00:12 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-19 14:00:12 +1030
commitf0b66c4be71d8e03cfaf0c8c1f5d60e535632162 (patch)
tree4594a00819b950b76c8c37fc9af33a7c272aebd1
parent04a44898f01fc8c30aba7e69b8f38b4bba30ec12 (diff)
downloadwebsitegenerator-f0b66c4be71d8e03cfaf0c8c1f5d60e535632162.tar.gz
websitegenerator-f0b66c4be71d8e03cfaf0c8c1f5d60e535632162.zip
rss: off-by-one for number of rss items to write
-rw-r--r--pages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages.c b/pages.c
index 4681eef..31fa08e 100644
--- a/pages.c
+++ b/pages.c
@@ -907,7 +907,7 @@ generaterss(const int *posts, size_t totalposts)
int towrite = post_count;
while (towrite > totalposts)
towrite--;
- for (i = 1; i < towrite; i++)
+ for (i = 1; i <= towrite; i++)
{
if (!writerss(tmp, (totalposts - posts[i])))
return 0;