mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
20 lines
334 B
C
20 lines
334 B
C
|
/*
|
||
|
* Wrapper function for the nonfatal() method of a Seat,
|
||
|
* providing printf-style formatting.
|
||
|
*/
|
||
|
|
||
|
#include "putty.h"
|
||
|
|
||
|
void seat_nonfatal(Seat *seat, const char *fmt, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
char *msg;
|
||
|
|
||
|
va_start(ap, fmt);
|
||
|
msg = dupvprintf(fmt, ap);
|
||
|
va_end(ap);
|
||
|
|
||
|
seat->vt->nonfatal(seat, msg);
|
||
|
sfree(msg);
|
||
|
}
|