Missing strndup (fix for issue #193)

This pull should be accepted after pull #174