]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
properly null terminate string.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Apr 2011 22:31:01 +0000 (00:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Apr 2011 22:31:01 +0000 (00:31 +0200)
src/cli.c

index ab3006b2dd309b7e232528c933c6e857145c1ff0..be4907ff2bb9611cc87fe3cf23cd5dcb5a48a8b3 100644 (file)
--- 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');