]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - psftp.c
Fix a couple of stupid typos in the session-saving code.
[PuTTY.git] / psftp.c
diff --git a/psftp.c b/psftp.c
index 2dc6e4c443cd4441c952da1bb1adfe4104dbea96..3fdfa45ab224eee6449d497e59642679a82b60c9 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -1528,7 +1528,7 @@ static unsigned char *outptr;            /* where to put the data */
 static unsigned outlen;                       /* how much data required */
 static unsigned char *pending = NULL;  /* any spare data */
 static unsigned pendlen = 0, pendsize = 0;     /* length and phys. size of buffer */
-int from_backend(void *frontend, int is_stderr, char *data, int datalen)
+int from_backend(void *frontend, int is_stderr, const char *data, int datalen)
 {
     unsigned char *p = (unsigned char *) data;
     unsigned len = (unsigned) datalen;
@@ -1836,6 +1836,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
     }
     logctx = log_init(NULL, &cfg);
     back->provide_logctx(backhandle, logctx);
+    console_provide_logctx(logctx);
     ssh_sftp_init();
     if (verbose && realhost != NULL)
        printf("Connected to %s\n", realhost);