diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-12-19 13:48:14 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-12-19 14:19:39 -0500 |
commit | d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82 (patch) | |
tree | 0fe84b2de733466d2d1ed59bfef3d11cc872c362 /apps | |
parent | 71e3f6c07727ec6784cf7f9cf01b5e2888b4522c (diff) |
Buffering: Missed converting one case assuming const handle size.
Must now be h->size, not sizeof (type).
Change-Id: Ia0b1b552a486ddbc28b80542cfa76bed9e7cfdb3
Diffstat (limited to 'apps')
-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) #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 |