ethpipe.c: fix ring buffer overflow problem