Reduce complexity by using strdup().
Merge pull request #115 from caldwell/use_strdup

Reduce complexity by using strdup().