diff --git a/src/extmem/memccpy_s.c b/src/extmem/memccpy_s.c index b60a0f9d..ed50dd96 100644 --- a/src/extmem/memccpy_s.c +++ b/src/extmem/memccpy_s.c @@ -89,12 +89,12 @@ EXPORT errno_t _memccpy_s_chk(void *restrict dest, rsize_t dmax, const size_t destbos, const size_t srcbos) #endif { - (void) srcbos; - uint8_t *dp; const uint8_t *sp; rsize_t orig_dmax = dmax; + (void) srcbos; + dp = (uint8_t *)dest; sp = (uint8_t *)src;