From 110b1f14bd5b5548211ece9a32c540490e0aef6a Mon Sep 17 00:00:00 2001 From: Douglas Engert Date: Fri, 21 Jan 2005 17:44:36 +0000 Subject: [PATCH] rx-packetreadwrite-adjust-offset-20050119 offset - l must be zero in the second loop pass to avoid overwrites --- src/rx/rx_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rx/rx_packet.c b/src/rx/rx_packet.c index c5382a4..c1f879e 100644 --- a/src/rx/rx_packet.c +++ b/src/rx/rx_packet.c @@ -193,6 +193,7 @@ rx_SlowReadPacket(struct rx_packet * packet, unsigned int offset, int resid, resid -= j; out += j; l += packet->wirevec[i].iov_len; + offset = l; i++; } @@ -234,6 +235,7 @@ rx_SlowWritePacket(struct rx_packet * packet, int offset, int resid, char *in) resid -= j; in += j; l += packet->wirevec[i].iov_len; + offset = l; i++; } -- 1.9.4