mirror of
https://github.com/curl/curl.git
synced 2026-08-11 18:21:04 +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
|
|
@ -69,9 +69,9 @@ static char *checkhome(const char *home, const char *fname, bool dotscore)
|
|||
for(i = 0; i < (dotscore ? 2 : 1); i++) {
|
||||
char *c;
|
||||
if(dotscore)
|
||||
c = aprintf("%s" DIR_CHAR "%c%s", home, pref[i], &fname[1]);
|
||||
c = curl_maprintf("%s" DIR_CHAR "%c%s", home, pref[i], &fname[1]);
|
||||
else
|
||||
c = aprintf("%s" DIR_CHAR "%s", home, fname);
|
||||
c = curl_maprintf("%s" DIR_CHAR "%s", home, fname);
|
||||
if(c) {
|
||||
int fd = curlx_open(c, O_RDONLY);
|
||||
if(fd >= 0) {
|
||||
|
|
@ -115,7 +115,7 @@ char *findfile(const char *fname, int dotscore)
|
|||
continue;
|
||||
}
|
||||
if(conf_list[i].append) {
|
||||
char *c = aprintf("%s%s", home, conf_list[i].append);
|
||||
char *c = curl_maprintf("%s%s", home, conf_list[i].append);
|
||||
curl_free(home);
|
||||
if(!c)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue