aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/parseConst.cpp
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-02-11 22:36:01 +0000
committerJohn Kessenich <cepheus@frii.com>2013-02-11 22:36:01 +0000
commit54d8cda95e29cbe68aded9c49b62cef77c15c98a (patch)
tree1ec765c53abb6ced6cb8d2f40ca43865ec96cfa9 /glslang/MachineIndependent/parseConst.cpp
parentdadf945fd76469da52807bd9ef5b8527001f0195 (diff)
downloadglslang-54d8cda95e29cbe68aded9c49b62cef77c15c98a.tar.gz
Pass 1 at building on linux: remove compile errors from machine independent.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20536 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/parseConst.cpp')
-rw-r--r--glslang/MachineIndependent/parseConst.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/glslang/MachineIndependent/parseConst.cpp b/glslang/MachineIndependent/parseConst.cpp
index 2509c714..abd97143 100644
--- a/glslang/MachineIndependent/parseConst.cpp
+++ b/glslang/MachineIndependent/parseConst.cpp
@@ -84,7 +84,7 @@ bool ParseBinary(bool /* preVisit */, TIntermBinary* node, TIntermTraverser* it)
if (qualifier != EvqConst) {
const int maxSize = 200;
char buf[maxSize];
- sprintf_s(buf, maxSize, "'constructor' : assigning non-constant to %s", oit->type.getCompleteString().c_str());
+ snprintf(buf, maxSize, "'constructor' : assigning non-constant to %s", oit->type.getCompleteString().c_str());
oit->infoSink.info.message(EPrefixError, buf, node->getLine());
oit->error = true;
@@ -102,7 +102,7 @@ bool ParseUnary(bool /* preVisit */, TIntermUnary* node, TIntermTraverser* it)
const int maxSize = 200;
char buf[maxSize];
- sprintf_s(buf, maxSize, "'constructor' : assigning non-constant to '%s'", oit->type.getCompleteString().c_str());
+ snprintf(buf, maxSize, "'constructor' : assigning non-constant to '%s'", oit->type.getCompleteString().c_str());
oit->infoSink.info.message(EPrefixError, buf, node->getLine());
oit->error = true;
@@ -116,7 +116,7 @@ bool ParseAggregate(bool /* preVisit */, TIntermAggregate* node, TIntermTraverse
if (!node->isConstructor() && node->getOp() != EOpComma) {
const int maxSize = 200;
char buf[maxSize];
- sprintf_s(buf, maxSize, "'constructor' : assigning non-constant to '%s'", oit->type.getCompleteString().c_str());
+ snprintf(buf, maxSize, "'constructor' : assigning non-constant to '%s'", oit->type.getCompleteString().c_str());
oit->infoSink.info.message(EPrefixError, buf, node->getLine());
oit->error = true;