added const keyword to strdup argument