diff options
Diffstat (limited to 'utils/seat_connection_fatal.c')
-rw-r--r-- | utils/seat_connection_fatal.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/seat_connection_fatal.c b/utils/seat_connection_fatal.c new file mode 100644 index 00000000..9b0186b1 --- /dev/null +++ b/utils/seat_connection_fatal.c @@ -0,0 +1,20 @@ +/* + * Wrapper function for the connection_fatal() method of a Seat, + * providing printf-style formatting. + */ + +#include "putty.h" + +void seat_connection_fatal(Seat *seat, const char *fmt, ...) +{ + va_list ap; + char *msg; + + va_start(ap, fmt); + msg = dupvprintf(fmt, ap); + va_end(ap); + + seat->vt->connection_fatal(seat, msg); + sfree(msg); /* if we return */ +} + |