mirror of
https://github.com/curl/curl.git
synced 2025-04-06 16:10:34 +08:00
telnet.c: fix possible use of non-null-terminated strings
This commit is contained in:
parent
c48b996cf2
commit
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user