summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-07 00:31:01 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-08 00:19:15 +0200
commitd6f07e7e1bd0f736d67b1278c1d7ad9673633655 (patch)
tree33c8acb2fe2290b82192d70a91a8e8c50c390ce3 /src
parent08e91517e197c58430a6400c0b73d08e843ba296 (diff)
downloadgnutls-d6f07e7e1bd0f736d67b1278c1d7ad9673633655.tar.gz
properly null terminate string.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index b92291528f..963f7fc2de 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -915,6 +915,7 @@ after_handshake:
continue;
}
+ buffer[bytes] = 0;
if (crlf != 0)
{
char *b = strchr (buffer, '\n');