Oops - fputs takes the file pointer second, not first!
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 20 Dec 2001 14:19:10 +0000 (14:19 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 20 Dec 2001 14:19:10 +0000 (14:19 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1513 cda61777-01e9-0310-a592-d414129be87e

psftp.c

diff --git a/psftp.c b/psftp.c
index 7b67310..52f6dc9 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -1623,7 +1623,7 @@ void fatalbox(char *fmt, ...)
     vsprintf(str + strlen(str), fmt, ap);
     va_end(ap);
     strcat(str, "\n");
-    fputs(stderr, str);
+    fputs(str, stderr);
 
     exit(1);
 }
@@ -1636,7 +1636,7 @@ void connection_fatal(char *fmt, ...)
     vsprintf(str + strlen(str), fmt, ap);
     va_end(ap);
     strcat(str, "\n");
-    fputs(stderr, str);
+    fputs(str, stderr);
 
     exit(1);
 }