Put the \001 prefix back on scp error messages when they're sent to
[u/mdw/putty] / scp.c
diff --git a/scp.c b/scp.c
index ad33413..413cf4c 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -616,6 +616,7 @@ static void run_err(const char *fmt, ...)
     strcpy(str, "scp: ");
     vsprintf(str+strlen(str), fmt, ap);
     strcat(str, "\n");
+    back->send("\001", 1);            /* scp protocol error prefix */
     back->send(str, strlen(str));
     tell_user(stderr, "%s",str);
     va_end(ap);