Colin's const-fixing Patch Of Death. Seems to build fine on Windows
[u/mdw/putty] / psftp.c
diff --git a/psftp.c b/psftp.c
index c93d7be..7516151 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -1691,7 +1691,7 @@ static void usage(void)
 static int psftp_connect(char *userhost, char *user, int portnumber)
 {
     char *host, *realhost;
-    char *err;
+    const char *err;
 
     /* Separate host and username */
     host = userhost;