mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
71e3f6c077
commit
d35a18f6b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue