Merge branch 'bluhm-memcpy-cast' (pull request #125)

This commit is contained in:
Sebastian Pipping 2017-08-22 20:35:28 +02:00
commit 00f31fa43f

View File

@ -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;