Replaced call to C function strdup.