Fix copyf() in set for next version of libreset

The next version uses `void*` instead of `void const*` as
return/argument type.