diff options
Diffstat (limited to 'apps/buffering.c')
-rw-r--r-- | apps/buffering.c | 2 |
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) | |||
1181 | 1181 | ||
1182 | #ifdef STORAGE_WANTS_ALIGN | 1182 | #ifdef STORAGE_WANTS_ALIGN |
1183 | /* Strip alignment padding then redo */ | 1183 | /* Strip alignment padding then redo */ |
1184 | size_t new_index = ringbuf_add(ringbuf_offset(h), sizeof (*h)); | 1184 | size_t new_index = ringbuf_add(ringbuf_offset(h), h->size); |
1185 | 1185 | ||
1186 | /* Align to desired storage alignment if space permits - handle could | 1186 | /* Align to desired storage alignment if space permits - handle could |
1187 | have been shrunken too close to the following one after a previous | 1187 | have been shrunken too close to the following one after a previous |