diff --git a/ctaocrypt/src/error.c b/ctaocrypt/src/error.c index 314e22312..63f71b5eb 100644 --- a/ctaocrypt/src/error.c +++ b/ctaocrypt/src/error.c @@ -25,6 +25,12 @@ #include +#ifdef _MSC_VER + /* 4996 warning to use MS extensions e.g., strcpy_s instead of XSTRNCPY */ + #pragma warning(disable: 4996) +#endif + + void CTaoCryptErrorString(int error, char* buffer) { const int max = MAX_ERROR_SZ; /* shorthand */