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-07 00:31:01 +0200
commitbc1d7d9e33e0f8d6e6697e4131832f08e7562a74 (patch)
treea66b3c3f6800949e4ae223f0b00b92ea0b7c33fe /src
parentf623bca3f822eec97a638c1e6bb5626ec72f130e (diff)
downloadgnutls-bc1d7d9e33e0f8d6e6697e4131832f08e7562a74.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 ab3006b2dd..be4907ff2b 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -918,6 +918,7 @@ after_handshake:
continue;
}
+ buffer[bytes] = 0;
if (crlf != 0)
{
char *b = strchr (buffer, '\n');