typo in strdup implementation