mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
14 lines
294 B
C
14 lines
294 B
C
|
/*
|
||
|
* Construct the error message from a SeatPromptResult, and return it
|
||
|
* in a dynamically allocated string.
|
||
|
*/
|
||
|
|
||
|
#include "putty.h"
|
||
|
|
||
|
char *spr_get_error_message(SeatPromptResult spr)
|
||
|
{
|
||
|
strbuf *sb = strbuf_new();
|
||
|
spr.errfn(spr, BinarySink_UPCAST(sb));
|
||
|
return strbuf_to_str(sb);
|
||
|
}
|