summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/buffering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 71f991efae..9ffd35714c 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1181,7 +1181,7 @@ static void rebuffer_handle(int handle_id, off_t newpos)
#ifdef STORAGE_WANTS_ALIGN
/* Strip alignment padding then redo */
- size_t new_index = ringbuf_add(ringbuf_offset(h), sizeof (*h));
+ size_t new_index = ringbuf_add(ringbuf_offset(h), h->size);
/* Align to desired storage alignment if space permits - handle could
have been shrunken too close to the following one after a previous