diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-19 14:00:12 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-19 14:00:12 +1030 |
commit | f0b66c4be71d8e03cfaf0c8c1f5d60e535632162 (patch) | |
tree | 4594a00819b950b76c8c37fc9af33a7c272aebd1 | |
parent | 04a44898f01fc8c30aba7e69b8f38b4bba30ec12 (diff) | |
download | websitegenerator-f0b66c4be71d8e03cfaf0c8c1f5d60e535632162.tar.gz websitegenerator-f0b66c4be71d8e03cfaf0c8c1f5d60e535632162.zip |
rss: off-by-one for number of rss items to write
-rw-r--r-- | pages.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |