diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index 007aed06..82e7acf3 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -412,7 +412,7 @@ utf8_toUtf8(const ENCODING *UNUSED_P(enc), } const ptrdiff_t bytesToCopy = fromLim - *fromP; - memcpy((void *)*toP, (const void *)*fromP, (size_t)bytesToCopy); + memcpy(*toP, *fromP, bytesToCopy); *fromP += bytesToCopy; *toP += bytesToCopy;