mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
parent
188a43a8fd
commit
5d0ba70e17
@ -42,9 +42,12 @@ static void voutf(struct GlobalConfig *config,
|
|||||||
if(!config->mute) {
|
if(!config->mute) {
|
||||||
size_t len;
|
size_t len;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
char print_buffer[256];
|
char *print_buffer;
|
||||||
|
|
||||||
len = vsnprintf(print_buffer, sizeof(print_buffer), fmt, ap);
|
print_buffer = curlx_mvaprintf(fmt, ap);
|
||||||
|
if(!print_buffer)
|
||||||
|
return;
|
||||||
|
len = strlen(print_buffer);
|
||||||
|
|
||||||
ptr = print_buffer;
|
ptr = print_buffer;
|
||||||
while(len > 0) {
|
while(len > 0) {
|
||||||
@ -71,6 +74,7 @@ static void voutf(struct GlobalConfig *config,
|
|||||||
len = 0;
|
len = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
curl_free(print_buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user