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 | |
parent | 71e3f6c07727ec6784cf7f9cf01b5e2888b4522c (diff) | |
download | rockbox-d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82.tar.gz rockbox-d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82.zip |
Buffering: Missed converting one case assuming const handle size.
Must now be h->size, not sizeof (type).
Change-Id: Ia0b1b552a486ddbc28b80542cfa76bed9e7cfdb3
-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 |