From: Marc Hoersken Date: Sat, 19 Apr 2014 12:26:02 +0000 (+0200) Subject: telnet.c: fix possible use of non-null-terminated strings X-Git-Tag: curl-7_37_0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0fbe35378e8b6cda26e41c6c91337948803198;p=thirdparty%2Fcurl.git telnet.c: fix possible use of non-null-terminated strings --- diff --git a/lib/telnet.c b/lib/telnet.c index 3206ee1137..12a0580d72 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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;