summaryrefslogtreecommitdiffstats
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-12-19 13:48:14 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-12-19 14:19:39 -0500
commitd35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82 (patch)
tree0fe84b2de733466d2d1ed59bfef3d11cc872c362 /apps/buffering.c
parent71e3f6c07727ec6784cf7f9cf01b5e2888b4522c (diff)
downloadrockbox-d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82.tar.gz
rockbox-d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82.tar.bz2
rockbox-d35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82.zip
Buffering: Missed converting one case assuming const handle size.
Must now be h->size, not sizeof (type). Change-Id: Ia0b1b552a486ddbc28b80542cfa76bed9e7cfdb3
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c2
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