xmlsecurityengine/xmlsec/src/xmlsec_errors.c
branchRCL_3
changeset 16 d10d750052f0
parent 0 e35f40988205
child 24 74f0b3eb154c
equal deleted inserted replaced
14:361f875fa818 16:d10d750052f0
   240     if(xmlSecErrorsClbk != NULL) {
   240     if(xmlSecErrorsClbk != NULL) {
   241 	xmlChar error_msg[XMLSEC_ERRORS_BUFFER_SIZE];
   241 	xmlChar error_msg[XMLSEC_ERRORS_BUFFER_SIZE];
   242 	
   242 	
   243 	if(msg != NULL) {
   243 	if(msg != NULL) {
   244 	    va_list va;
   244 	    va_list va;
   245 
   245 		
   246 	    va_start(va, msg);
   246         //va points to the first argument in the list of variable arguments
       
   247 		va_start(va, msg);
   247   	    xmlSecStrVPrintf(error_msg, sizeof(error_msg), BAD_CAST msg, va);
   248   	    xmlSecStrVPrintf(error_msg, sizeof(error_msg), BAD_CAST msg, va);
   248 	    error_msg[sizeof(error_msg) - 1] = '\0';
   249 	    error_msg[sizeof(error_msg) - 1] = '\0';
   249 	    va_end(va);	
   250 	    va_end(va);	
   250 	} else {
   251 	} else {
   251 	    error_msg[0] = '\0';	    
   252 	    error_msg[0] = '\0';