Loading src/main.c +6 −3 Original line number Diff line number Diff line Loading @@ -863,7 +863,6 @@ static int formparse(char *input, ptr++; if(curlx_strnequal("type=", ptr, 5)) { /* set type pointer */ type = &ptr[5]; Loading @@ -878,10 +877,14 @@ static int formparse(char *input, /* now point beyond the content-type specifier */ sep = (char *)type + strlen(major)+strlen(minor)+1; if(*sep) { *sep=0; /* zero terminate type string */ ptr=sep+1; } else ptr = NULL; /* end */ } else if(curlx_strnequal("filename=", ptr, 9)) { filename = &ptr[9]; ptr=strchr(filename, FORM_TYPE_SEPARATOR); Loading Loading
src/main.c +6 −3 Original line number Diff line number Diff line Loading @@ -863,7 +863,6 @@ static int formparse(char *input, ptr++; if(curlx_strnequal("type=", ptr, 5)) { /* set type pointer */ type = &ptr[5]; Loading @@ -878,10 +877,14 @@ static int formparse(char *input, /* now point beyond the content-type specifier */ sep = (char *)type + strlen(major)+strlen(minor)+1; if(*sep) { *sep=0; /* zero terminate type string */ ptr=sep+1; } else ptr = NULL; /* end */ } else if(curlx_strnequal("filename=", ptr, 9)) { filename = &ptr[9]; ptr=strchr(filename, FORM_TYPE_SEPARATOR); Loading