Make sure xstrdup() is used instead of strdup().