strncpy to ast_copy_string