Ticket #159: request_parser.patch
File request_parser.patch, 1005 bytes (added by jmckenna, 7 years ago) |
---|
possible fix (please review) |
-
request_parser.c
1740 1740 map* r_inputs = getMap (request,toCheck); 1741 1741 if (r_inputs == NULL){ 1742 1742 if(mandatory>0){ 1743 c har *replace=_("Mandatory parameter <%s> was not specified");1743 const char *replace=_("Mandatory parameter <%s> was not specified"); 1744 1744 char *message=(char*)malloc((strlen(replace)+strlen(toCheck)+1)*sizeof(char)); 1745 1745 sprintf(message,replace,toCheck); 1746 1746 if(lres==NULL){ … … 1789 1789 } 1790 1790 } 1791 1791 if(hasValidValue<0){ 1792 c har *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");1792 const char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value."); 1793 1793 nb=0; 1794 1794 char *vvalues=NULL; 1795 c har* num=_("is");1795 const char* num=_("is"); 1796 1796 while(avalues[nb]!=NULL){ 1797 1797 char *tvalues; 1798 1798 if(vvalues==NULL){