From 7e8240c846835a9dde9ef4679d9b9bcd611fbcff Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 9 Apr 2012 06:25:39 +0000
Subject: [PATCH] Increase size of temporary buffer to allow errors activating
 session.

Previously, the error message was 32 bytes, plus the null... which doesn't
fit into a 32-byte buffer very well.
---
 src/syncterm/ssh.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/syncterm/ssh.c b/src/syncterm/ssh.c
index 5157512d61..63319e06b2 100644
--- a/src/syncterm/ssh.c
+++ b/src/syncterm/ssh.c
@@ -19,10 +19,10 @@ static SOCKET	sock;
 CRYPT_SESSION	ssh_session;
 int				ssh_active=FALSE;
 
-static void cryptlib_error_message(int status, char * msg)
+static void cryptlib_error_message(int status, const char * msg)
 {
-	char	str[32];
-	char	str2[32];
+	char	str[64];
+	char	str2[64];
 	char	*errmsg;
 	int		err_len;
 
-- 
GitLab