diff options
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c index 1c7e989e..2cb0801d 100644 --- a/src/errors.c +++ b/src/errors.c @@ -236,7 +236,7 @@ xmlSecError(const char* file, int line, const char* func, for(i = 0; (i < XMLSEC_ERRORS_MAX_NUMBER) && (xmlSecErrorsGetMsg(i) != NULL); ++i) { if(xmlSecErrorsGetCode(i) == reason) { e_msg = xmlSecErrorsGetMsg(i); - sprintf(error_msg , "%s] [", e_msg); + snprintf(error_msg, sizeof(error_msg), "%s] [", e_msg); len = strlen(error_msg); break; } |