mirror of
https://github.com/curl/curl.git
synced 2026-04-15 08:51:46 +03:00
James Bursa's fix to prevent failf() to write outside its buffer boundary
This commit is contained in:
parent
54c6f2c7c0
commit
203f66d0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
|
|||
if(data->set.verbose) {
|
||||
int len = strlen(data->set.errorbuffer);
|
||||
bool doneit=FALSE;
|
||||
if(len < CURL_ERROR_SIZE) {
|
||||
if(len < CURL_ERROR_SIZE - 1) {
|
||||
doneit = TRUE;
|
||||
data->set.errorbuffer[len] = '\n';
|
||||
data->set.errorbuffer[++len] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue