Commit 5f66aa264ae645e385714104b15c1ade8ae17e7d

Edward Thomson 2022-02-13T09:16:09

Merge pull request #6212 from apnadkarni/patch-1 Fix crashes in example programs on Windows (sprintf_s not compatible with snprintf)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/common.h b/examples/common.h
index f86e92c..901c041 100644
--- a/examples/common.h
+++ b/examples/common.h
@@ -45,7 +45,7 @@
 #endif
 
 #ifdef _MSC_VER
-#define snprintf sprintf_s
+#define snprintf _snprintf
 #define strcasecmp strcmpi
 #endif