Buffering: Missed converting one case assuming const handle size.

Must now be h->size, not sizeof (type).

Change-Id: Ia0b1b552a486ddbc28b80542cfa76bed9e7cfdb3
This commit is contained in:
Michael Sevakis 2017-12-19 13:48:14 -05:00
parent 71e3f6c077
commit d35a18f6b4

View file

@ -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