Skip to content

Commit 571e9de

Browse files
authored
Fix definition of snprintf for MSVC
MS _snprintf_s takes an additional argument for the size of the buffer, so is not a direct replacement (utest/ctest.h from which I copied was wrong)
1 parent 045fb5e commit 571e9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/openblas_get_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737

3838
#if defined(_WIN32) && defined(_MSC_VER)
3939
#if _MSC_VER < 1900
40-
#define snprintf _snprintf_s
40+
#define snprintf _snprintf
4141
#endif
4242
#endif
4343

0 commit comments

Comments
 (0)