Merge pull request #6212 from apnadkarni/patch-1 Fix crashes in example programs on Windows (sprintf_s not compatible with snprintf)
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