X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/03203c8a42124de66a5e8d5eee2e5b86a3ec44cf..66b873f0277e8822c6479946353eef4ff06e56c1:/ipif/service.c diff --git a/ipif/service.c b/ipif/service.c index b9d8b44..87dac8e 100644 --- a/ipif/service.c +++ b/ipif/service.c @@ -863,7 +863,7 @@ static void copydata(void) { r= read(0, input_buf + input_waiting, want); if (r>0) { input_waiting += r; - assert(r < sizeof(input_buf)); + assert(input_waiting <= sizeof(input_buf)); more_rx_data(input_buf, rx_packet_buf); } else if (r==0) { terminate(0);