telnet.c: fix possible use of non-null-terminated strings
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 19 Apr 2014 12:26:02 +0000 (14:26 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 19 Apr 2014 12:26:02 +0000 (14:26 +0200)
lib/telnet.c

index 3206ee1..12a0580 100644 (file)
@@ -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;