summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-22 22:16:27 +0000
committerMiles Bader <miles@gnu.org>1996-01-22 22:16:27 +0000
commitcda658f8dc9b2203fcf3ea442b9780c03c7d27a0 (patch)
tree0aa72c5da2608fb48f95cf1a8afc16c64ea53d1e
parent8166b82d18d9a5032dd15a268c87a0ecc676154d (diff)
(packet_realloc): Reflect in the new values of BUF_START & BUF_END that we've
removed any empty space at the beginning of BUF.
-rw-r--r--libpipe/pq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpipe/pq.c b/libpipe/pq.c
index 504182e9..25bc38cb 100644
--- a/libpipe/pq.c
+++ b/libpipe/pq.c
@@ -256,8 +256,8 @@ packet_realloc (struct packet *packet, size_t new_len)
packet->buf = new_buf;
packet->buf_len = new_len;
packet->buf_vm_alloced = vm_alloc;
- packet->buf_start = new_buf + (start - old_buf);
- packet->buf_end = new_buf + (end - old_buf);
+ packet->buf_start = new_buf;
+ packet->buf_end = new_buf + (end - start);
}
return err;