more strncpy/ast_copy_string replacement.