From aa0fbe35378e8b6cda26e41c6c91337948803198 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sat, 19 Apr 2014 14:26:02 +0200 Subject: telnet.c: fix possible use of non-null-terminated strings --- lib/telnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/telnet.c b/lib/telnet.c index 3206ee113..12a0580d7 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; -- cgit v1.2.3