ethpipe.c: fixed ring buffer overflow