Loading src/tool_cb_wrt.c +2 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,8 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) /* open file for writing */ file = fopen(outs->filename, "wb"); if(!file) { warnf(config->global, "Failed to create the file %s: %s\n", outs->filename, strerror(errno)); warnf(config->global, "Failed to create the file %s: %s\n", outs->filename, strerror(errno)); return failure; } outs->s_isreg = TRUE; Loading src/tool_formparse.c +2 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,8 @@ int formparse(struct OperationConfig *config, /* verify that this is a fine type specifier */ if(2 != sscanf(type, "%127[^/]/%127[^;,\n]", type_major, type_minor)) { warnf(config->global, "Illegally formatted content-type field!\n"); warnf(config->global, "Illegally formatted content-type field!\n"); Curl_safefree(contents); FreeMultiInfo(&multi_start, &multi_current); return 2; /* illegal content-type syntax! */ Loading Loading
src/tool_cb_wrt.c +2 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,8 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) /* open file for writing */ file = fopen(outs->filename, "wb"); if(!file) { warnf(config->global, "Failed to create the file %s: %s\n", outs->filename, strerror(errno)); warnf(config->global, "Failed to create the file %s: %s\n", outs->filename, strerror(errno)); return failure; } outs->s_isreg = TRUE; Loading
src/tool_formparse.c +2 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,8 @@ int formparse(struct OperationConfig *config, /* verify that this is a fine type specifier */ if(2 != sscanf(type, "%127[^/]/%127[^;,\n]", type_major, type_minor)) { warnf(config->global, "Illegally formatted content-type field!\n"); warnf(config->global, "Illegally formatted content-type field!\n"); Curl_safefree(contents); FreeMultiInfo(&multi_start, &multi_current); return 2; /* illegal content-type syntax! */ Loading