Skip to content
Snippets Groups Projects
Commit aa0fbe35 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

telnet.c: fix possible use of non-null-terminated strings

parent c48b996c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment