mirror of
https://github.com/curl/curl.git
synced 2026-05-01 12:57:53 +03:00
tool_operate: fix msnprintfing the error message
Follow-up to 7be53774c4
Coverity CID 1513717 pointed out that we cannot use sizeof() on the
error buffer anymore.
Closes #9440
This commit is contained in:
parent
f1b76e53ae
commit
b0dae2a433
1 changed files with 3 additions and 2 deletions
|
|
@ -2325,8 +2325,9 @@ static CURLcode parallel_transfers(struct GlobalConfig *global,
|
|||
curl_multi_remove_handle(multi, easy);
|
||||
|
||||
if(ended->abort && tres == CURLE_ABORTED_BY_CALLBACK) {
|
||||
msnprintf(ended->errorbuffer, sizeof(ended->errorbuffer),
|
||||
"Transfer aborted due to critical error in another transfer");
|
||||
msnprintf(ended->errorbuffer, CURL_ERROR_SIZE,
|
||||
"Transfer aborted due to critical error "
|
||||
"in another transfer");
|
||||
}
|
||||
tres = post_per_transfer(global, ended, tres, &retry, &delay);
|
||||
progress_finalize(ended); /* before it goes away */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue