diff --git a/img.c b/img.c index ae664af..27fcdce 100644 --- a/img.c +++ b/img.c @@ -369,7 +369,7 @@ void build_html(const char *file, const struct UNIQ_TAGS ut, struct DB_STR *db) while (p != NULL) { struct DB_STR *i = p->next; - if (count > POST_PER_PAGE) { + if (count >= POST_PER_PAGE) { count = 0; pages++; }