telnet.c: fix possible use of non-null-terminated strings
This commit is contained in:
Родитель
c48b996cf2
Коммит
aa0fbe3537
|
@ -822,8 +822,8 @@ static CURLcode check_telnet_options(struct connectdata *conn)
|
|||
{
|
||||
struct curl_slist *head;
|
||||
struct curl_slist *beg;
|
||||
char option_keyword[128];
|
||||
char option_arg[256];
|
||||
char option_keyword[128] = "";
|
||||
char option_arg[256] = "";
|
||||
struct SessionHandle *data = conn->data;
|
||||
struct TELNET *tn = (struct TELNET *)conn->data->req.protop;
|
||||
CURLcode result = CURLE_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче