Commit Diff
--- FICS/network.c +++ FICS/network.c @@ -371,7 +371,7 @@ readline2(comstr_t *cs, int who) if (con[who].processed) s += v_pending; else { - if (bytes_received + v_pending > INT_MAX) + if (bytes_received > INT_MAX - v_pending) errx(1, "%s: integer overflow", __func__); bytes_received += v_pending; }