]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Colin's and my fixes to connection_fatal().
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index 81ca0c87c32d4bfd9a20b1182931cf1043142a3d..11683c0e734388ab9c7dfae2451d39cc5ca0610e 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -2085,7 +2085,7 @@ static int ssh_closing(Plug plug, char *error_msg, int error_code,
     if (error_msg) {
        /* A socket error has occurred. */
        logevent(error_msg);
-       connection_fatal(ssh->frontend, error_msg);
+       connection_fatal(ssh->frontend, "%s", error_msg);
     } else {
        /* Otherwise, the remote side closed the connection normally. */
     }