Skip to content

Commit e43a95c

Browse files
authored
Merge pull request #83 from peter-urban/ignore_strcat_security_warnings_for_the_test_executable
Set _CRT_SECURE_NO_WARNINGS in gsw_check_functions.c
2 parents 83a5255 + 5ab356d commit e43a95c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gsw_check_functions.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
** $Id: gsw_check_functions.c,v 0db1b20bdf1b 2015/08/26 21:39:20 fdelahoyde $
33
** $Version: 3.05.0-1 $
44
*/
5+
6+
/* This ignores MSVC warnings about "unsafe: functions (strcpy, strncat,
7+
** strcat) in the gsw_check_functions.c file . While the security advice
8+
** may be sound in the context of the main library, these functions do not pose
9+
** a security risk in the context of this test executable.
10+
*/
11+
#define _CRT_SECURE_NO_WARNINGS
12+
513
#include <stdio.h>
614
#include <stdarg.h>
715
#include <string.h>

0 commit comments

Comments
 (0)