Skip to content

Commit 15dad86

Browse files
committed
fix unwanted change from last commit
1 parent fedbc79 commit 15dad86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint
215215

216216
len = strlen(endtag);
217217
while (1) {
218-
if (limit && count >= limit) {
218+
if (limit && count == limit) {
219219
free(chunk);
220220
WRN("Session %u: reading limit (%d) reached.", session->id, limit);
221221
ERR("Session %u: invalid input data (missing \"%s\" sequence).", session->id, endtag);

0 commit comments

Comments
 (0)