fix unwanted change from last commit
diff --git a/src/io.c b/src/io.c
index 1748abf..88f6745 100644
--- a/src/io.c
+++ b/src/io.c
@@ -215,7 +215,7 @@
 
     len = strlen(endtag);
     while (1) {
-        if (limit && count >= limit) {
+        if (limit && count == limit) {
             free(chunk);
             WRN("Session %u: reading limit (%d) reached.", session->id, limit);
             ERR("Session %u: invalid input data (missing \"%s\" sequence).", session->id, endtag);