replace Xalloca + strdup with Xstrdup_a