Colin's const-fixing Patch Of Death. Seems to build fine on Windows
[u/mdw/putty] / scp.c
diff --git a/scp.c b/scp.c
index 21fe332..0c7fe74 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -476,7 +476,8 @@ static void bump(char *fmt, ...)
  */
 static void do_cmd(char *host, char *user, char *cmd)
 {
-    char *err, *realhost;
+    const char *err;
+    char *realhost;
     DWORD namelen;
 
     if (host == NULL || host[0] == '\0')