Replace strdup() calls with strdup_or_die() calls were it's safe and simplifies the...