Just use errbuf = MCSTR(...) here - there's no need to use MCStringCopy (that method is for copying a mutable stringref as an immutable one).