summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index f12e7e55d..5ebb22999 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -4,6 +4,7 @@
#include "compiler.h"
#include "visitor.h"
+#include "../core/secure-crt.h"
#include <assert.h>
namespace Slang
@@ -4887,7 +4888,7 @@ namespace Slang
if (auto decl = dynamic_cast<CallableDecl*>(candidate.item.declRef.decl))
{
char buffer[1024];
- sprintf(buffer, "[this:%p, primary:%p, next:%p]",
+ sprintf_s(buffer, sizeof(buffer), "[this:%p, primary:%p, next:%p]",
decl,
decl->primaryDecl,
decl->nextDecl);