commit | 15dad86a092bf2be7e3fb2d08715b496d6a1bec7 | [log] [tgz] |
---|---|---|
author | David Sedlák <xsedla1d@stud.fit.vutbr.cz> | Wed Jul 04 11:25:55 2018 +0200 |
committer | David Sedlák <xsedla1d@stud.fit.vutbr.cz> | Wed Jul 04 11:25:55 2018 +0200 |
tree | 779734398f307cb4a1dc6309cd89718ab89128cc | |
parent | fedbc79efb3c15baadd21998663dc7d48b64b702 [diff] |
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);