mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
src: stop overriding system printf symbols
Also:
- tool_operate: use the socket printf mask, drop cast.
Follow-up to 4deea9396b #18814
Closes #18844
This commit is contained in:
parent
34ad78da89
commit
db98daab05
25 changed files with 203 additions and 207 deletions
|
|
@ -466,16 +466,16 @@ CURLcode glob_url(struct URLGlob *glob, char *url, curl_off_t *urlnum,
|
|||
char text[512];
|
||||
const char *t;
|
||||
if(glob->pos) {
|
||||
msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
|
||||
glob->error,
|
||||
glob->pos, url, (int)glob->pos - 1, " ");
|
||||
curl_msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
|
||||
glob->error,
|
||||
glob->pos, url, (int)glob->pos - 1, " ");
|
||||
t = text;
|
||||
}
|
||||
else
|
||||
t = glob->error;
|
||||
|
||||
/* send error description to the error-stream */
|
||||
fprintf(error, "curl: (%d) %s\n", res, t);
|
||||
curl_mfprintf(error, "curl: (%d) %s\n", res, t);
|
||||
}
|
||||
/* it failed, we cleanup */
|
||||
glob_cleanup(glob);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue