mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 02:02:26 +00:00
Oops - fputs takes the file pointer second, not first!
[originally from svn r1513]
This commit is contained in:
parent
0fa9d708f7
commit
811b9b7d18
4
psftp.c
4
psftp.c
@ -1623,7 +1623,7 @@ void fatalbox(char *fmt, ...)
|
|||||||
vsprintf(str + strlen(str), fmt, ap);
|
vsprintf(str + strlen(str), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
strcat(str, "\n");
|
strcat(str, "\n");
|
||||||
fputs(stderr, str);
|
fputs(str, stderr);
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -1636,7 +1636,7 @@ void connection_fatal(char *fmt, ...)
|
|||||||
vsprintf(str + strlen(str), fmt, ap);
|
vsprintf(str + strlen(str), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
strcat(str, "\n");
|
strcat(str, "\n");
|
||||||
fputs(stderr, str);
|
fputs(str, stderr);
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user