Skip to content

Commit 1309711

Browse files
authored
Fix declaration of snprintf for older MSVC
_snprintf_s takes an additional (size) argument, so is no direct replacement. (Note that this code is currently unused - the two instances of snprintf here are within ifdef blocks that are not compiled for MSVC)
1 parent 571e9de commit 1309711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utest/ctest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ctest {
8484
#endif
8585

8686
#if _MSC_VER < 1900
87-
#define snprintf _snprintf_s
87+
#define snprintf _snprintf
8888
#endif
8989

9090
#ifndef __cplusplus

0 commit comments

Comments
 (0)