Handle minus in the fmt spec

This commit is contained in:
Sergey Lyubka committed 2022-02-11 11:02:06 +00:00
1 parent 54f75889fa
commit 313ac34e59
10 files changed
+272 -216

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ static void iolog(struct mg_connection *c, char *buf, long n, bool r) {
mg_call(c, MG_EV_READ, &evd);
} else {
mg_iobuf_del(&c->send, 0, (size_t) n);
if (c->send.len == 0) mg_iobuf_resize(&c->send, 0);
// if (c->send.len == 0) mg_iobuf_resize(&c->send, 0);
mg_call(c, MG_EV_WRITE, &n);
}
}