use external CYASSL_MAX_ERROR_SZ for buffer size

This commit is contained in:
toddouska
2013-08-06 11:48:00 -07:00
parent 427a421ec5
commit 5c5cee0789
10 changed files with 18 additions and 14 deletions

View File

@@ -176,7 +176,7 @@ int CyaSSL_swig_connect(CYASSL* ssl, const char* server, int port)
char* CyaSSL_error_string(int err)
{
static char buffer[80];
static char buffer[CYASSL_MAX_ERROR_SZ];
return CyaSSL_ERR_error_string(err, buffer);
}