seat_nonfatal.c 334 B

1234567891011121314151617181920
  1. /*
  2. * Wrapper function for the nonfatal() method of a Seat,
  3. * providing printf-style formatting.
  4. */
  5. #include "putty.h"
  6. void seat_nonfatal(Seat *seat, const char *fmt, ...)
  7. {
  8. va_list ap;
  9. char *msg;
  10. va_start(ap, fmt);
  11. msg = dupvprintf(fmt, ap);
  12. va_end(ap);
  13. seat->vt->nonfatal(seat, msg);
  14. sfree(msg);
  15. }