summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
Diffstat (limited to 'libpipe')
-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;