summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/errors.c b/src/errors.c
index 2ff1f42a..a4519270 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -229,9 +229,8 @@ xmlSecError(const char* file, int line, const char* func,
if(msg != NULL) {
va_list va;
-
va_start(va, msg);
- xmlSecStrVPrintf(error_msg, sizeof(error_msg), BAD_CAST msg, va);
+ xmlSecStrVPrintf(error_msg, sizeof(error_msg), msg, va);
error_msg[sizeof(error_msg) - 1] = '\0';
va_end(va);
} else {