commit | c3458c9e1f536c6dac0327a88cc295e759cef21a | [log] [tgz] |
---|---|---|
author | Ben Hoyt <benhoyt@gmail.com> | Thu Apr 16 21:29:39 2015 -0400 |
committer | Ben Hoyt <benhoyt@gmail.com> | Thu Apr 16 21:29:39 2015 -0400 |
tree | 25739bd35cc8b7bb826c461481524cd6b799eabe | |
parent | a67bf227c1875a2824d6a78c989ed1ff45d66383 [diff] |
Prevent silly strncpy security warning in MSVC. https://github.com/benhoyt/inih/issues/34
diff --git a/ini.c b/ini.c index 9d8e313..d29fde4 100644 --- a/ini.c +++ b/ini.c
@@ -7,6 +7,10 @@ */ +#ifdef _MSC_VER +#define _CRT_SECURE_NO_WARNINGS +#endif + #include <stdio.h> #include <ctype.h> #include <string.h>