Fixed strndup()