From a8c0351fe46e69aff42491402d3d71e81ff60e56 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 1 Nov 2012 16:40:59 -0700 Subject: [PATCH] added pragma to new errors.c to hush a warning in Windows build --- ctaocrypt/src/error.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */