if(2 != sscanf(type, "%127[^/]/%127[^,\n]",
major, minor)) {
- fprintf(stderr, "Illegally formatted content-type field!\n");
free(contents);
return 2; /* illegal content-type syntax! */
}
}
else {
- fprintf(stderr, "Illegally formatted input field!\n");
free(contents);
return 1;
}
break;
}
default:
- fprintf (stderr, "got unknown CURLFORM_OPTION: %d\n", option);
return_value = FORMADD_UNKNOWN_OPTION;
}
}
do {
/* boundary */
- size += AddFormDataf(&form, "\r\n--%s\r\n", boundary);
+ size += AddFormDataf(&form, "--%s\r\n", boundary);
size += AddFormData(&form,
"Content-Disposition: form-data; name=\"", 0);