added pragma to new errors.c to hush a warning in Windows build

This commit is contained in:
John Safranek
2012-11-01 16:40:59 -07:00
parent 5e48dcbeeb
commit a8c0351fe4

View File

@@ -25,6 +25,12 @@
#include <cyassl/ctaocrypt/error.h>
#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 */