HPCC-10888 Fix Potential buffer overruns

Remove unnecessary strcpy to unneeded buffer by using the string as it
is provided (and casting it to required void * )

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>