function signature fix: add const qualifier to mempcpy src arg