]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Increase length limit on SSH1_MSG_DEBUG; 70 chars is short enough to
authorSimon Tatham <anakin@pobox.com>
Sat, 7 Sep 2002 12:27:13 +0000 (12:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 7 Sep 2002 12:27:13 +0000 (12:27 +0000)
lose vital information in some existing servers' messages.

[originally from svn r1932]

ssh.c

diff --git a/ssh.c b/ssh.c
index 19c93df409187efb41973672fb9a34bbcf4f787e..d998d08fd9b96eef51ed08149c6a589f70f261e8 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -804,11 +804,11 @@ static int ssh1_rdpkt(unsigned char **data, int *datalen)
 
     if (pktin.type == SSH1_MSG_DEBUG) {
        /* log debug message */
-       char buf[80];
+       char buf[512];
        int stringlen = GET_32BIT(pktin.body);
-       strcpy(buf, "Remote: ");
-       if (stringlen > 70)
-           stringlen = 70;
+       strcpy(buf, "Remote debug message: ");
+       if (stringlen > 480)
+           stringlen = 480;
        memcpy(buf + 8, pktin.body + 4, stringlen);
        buf[8 + stringlen] = '\0';
        logevent(buf);