Skip to content

Commit 5f66aa2

Browse files
authored
Merge pull request libgit2#6212 from apnadkarni/patch-1
Fix crashes in example programs on Windows (sprintf_s not compatible with snprintf)
2 parents 4c88b9d + 77ef1a6 commit 5f66aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#endif
4646

4747
#ifdef _MSC_VER
48-
#define snprintf sprintf_s
48+
#define snprintf _snprintf
4949
#define strcasecmp strcmpi
5050
#endif
5151

0 commit comments

Comments
 (0)