From 0e90ab36a04d9d83fe353643012a8fb66505278d Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 27 Jan 2017 18:02:16 -0500 Subject: [PATCH] fix rwav sample memcpy --- libretro-common/formats/wav/rwav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/formats/wav/rwav.c b/libretro-common/formats/wav/rwav.c index 80bb31ad4b..79ff71c9ff 100644 --- a/libretro-common/formats/wav/rwav.c +++ b/libretro-common/formats/wav/rwav.c @@ -115,7 +115,7 @@ int rwav_iterate(rwav_iterator_t *iter) if (s > RWAV_ITERATE_BUF_SIZE) s = RWAV_ITERATE_BUF_SIZE; - memcpy((void*)rwav->samples, (void *)(iter->data + 44 + iter->i), s); + memcpy((void*)((uint8_t*)rwav->samples + iter->i), (void *)(iter->data + 44 + iter->i), s); printf("copied %lu\n", s); iter->i += s;