mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
14 lines
307 B
C
14 lines
307 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);
|
|
}
|