corrected strdup