1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/putty/utils/spr_get_err_message.c
Martin Prikryl 980db10682 Renaming files with "error" in name that triggers red highlight in IDE build log
Source commit: b31b9814c8e1956ba11a91f1b1312863da530992
2025-12-05 01:21:16 +01:00

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);
}