commit b4d67e1c045ffecaf610f817ae8c18bf0450d261 from: Markus Uhlin date: Sun Sep 7 21:54:55 2025 UTC Changed to a while loop commit - 1906b8d39fc25649c832a3d570a3ee3d220b358f commit + b4d67e1c045ffecaf610f817ae8c18bf0450d261 blob - 5fa7d84f36cb63ac25e2df965240c35d4b5f2c26 blob + c87341e8faa6ec17fa91b28bcfe8695bbc4f3c14 --- FICS/network.c +++ FICS/network.c @@ -373,7 +373,7 @@ readline2(comstr_t *cs, int who) bytes_received += v_pending; d = s; - for (; bytes_received-- > 0; s++) { + while (bytes_received-- > 0) { switch (state) { case 0: // haven't skipped over any control chars or // telnet commands @@ -449,8 +449,10 @@ readline2(comstr_t *cs, int who) state = 2; break; } - } + s++; + } // while + if (state == 0) d = s; else if (state == 2)