xmlsecurityengine/xmlsec/src/xmlsec_errors.c
changeset 17 ed3155dbd163
parent 0 e35f40988205
child 24 74f0b3eb154c
--- a/xmlsecurityengine/xmlsec/src/xmlsec_errors.c	Fri Apr 16 16:57:34 2010 +0300
+++ b/xmlsecurityengine/xmlsec/src/xmlsec_errors.c	Mon May 03 14:14:40 2010 +0300
@@ -242,8 +242,9 @@
 	
 	if(msg != NULL) {
 	    va_list va;
-
-	    va_start(va, msg);
+		
+        //va points to the first argument in the list of variable arguments
+		va_start(va, msg);
   	    xmlSecStrVPrintf(error_msg, sizeof(error_msg), BAD_CAST msg, va);
 	    error_msg[sizeof(error_msg) - 1] = '\0';
 	    va_end(va);