aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-04-19 14:26:02 +0200
committerMarc Hoersken <info@marc-hoersken.de>2014-04-19 14:26:02 +0200
commitaa0fbe35378e8b6cda26e41c6c91337948803198 (patch)
treebd6a885cf8fa7da6b66f6276ebd7f32330a2939a
parentc48b996cf2bf9331047218b02aa28b39a8796832 (diff)
telnet.c: fix possible use of non-null-terminated strings
-rw-r--r--lib/telnet.c4
1 files changed, 2 insertions, 2 deletions
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;