]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Oops - fputs takes the file pointer second, not first!
authorSimon Tatham <anakin@pobox.com>
Thu, 20 Dec 2001 14:19:10 +0000 (14:19 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 20 Dec 2001 14:19:10 +0000 (14:19 +0000)
[originally from svn r1513]

psftp.c

diff --git a/psftp.c b/psftp.c
index 7b67310c408658e92fca4de2080b5a97c6d10156..52f6dc99fb595e457735aeb532ae48438e793b6a 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);
 }