You don't need strdup()s here.