Skip to content

Commit

Permalink
Merge pull request #83 from peter-urban/ignore_strcat_security_warnin…
Browse files Browse the repository at this point in the history
…gs_for_the_test_executable

Set _CRT_SECURE_NO_WARNINGS in gsw_check_functions.c
  • Loading branch information
efiring authored Nov 12, 2024
2 parents 83a5255 + 5ab356d commit e43a95c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gsw_check_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
** $Id: gsw_check_functions.c,v 0db1b20bdf1b 2015/08/26 21:39:20 fdelahoyde $
** $Version: 3.05.0-1 $
*/

/* This ignores MSVC warnings about "unsafe: functions (strcpy, strncat,
** strcat) in the gsw_check_functions.c file . While the security advice
** may be sound in the context of the main library, these functions do not pose
** a security risk in the context of this test executable.
*/
#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdarg.h>
#include <string.h>
Expand Down

0 comments on commit e43a95c

Please sign in to comment.