From: Nikos Mavrogiannopoulos Date: Wed, 6 Apr 2011 22:31:01 +0000 (+0200) Subject: properly null terminate string. X-Git-Tag: gnutls_2_99_0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc1d7d9e33e0f8d6e6697e4131832f08e7562a74;p=thirdparty%2Fgnutls.git properly null terminate string. --- 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');