Use xstrdup() instead of xasprintf() to copy static strings.