Add missing brace. (#1783)

This commit is contained in:
Andreas Süßenbach 2024-02-02 21:34:43 +01:00 committed by GitHub
parent 3a946ddfa1
commit 81be6ce248
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11325,7 +11325,7 @@ std::string VulkanHppGenerator::generateStructSetter( std::string const & struct
${structureName} & set${ArrayName}( std::string const & ${arrayName}_ ) VULKAN_HPP_NOEXCEPT
{
VULKAN_HPP_ASSERT( ${arrayName}_.size() < ${arraySize} );
strncpy( ${arrayName}, ${arrayName}_.data(), std::min<size_t>( ${arrayName}_.size(), ${arraySize} );
strncpy( ${arrayName}, ${arrayName}_.data(), std::min<size_t>( ${arrayName}_.size(), ${arraySize} ) );
return *this;
}
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/