Makr __strndup with __attribute_malloc__.