Commit f98ee234 by John Kessenich

Fix incorrect used of snprintf()

parent 68d78fd3
...@@ -2545,8 +2545,9 @@ namespace glslang { ...@@ -2545,8 +2545,9 @@ namespace glslang {
void GetSpirvVersion(std::string& version) void GetSpirvVersion(std::string& version)
{ {
char buf[10]; const int bufSize = 10;
snprintf(buf, "0.%d", spv::Version); char buf[bufSize];
snprintf(buf, bufSize, "0.%d", spv::Version);
version = buf; version = buf;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment