Using zstrndup instead of strndup)