more stncpy/ast_copy_string replacement.