mirror of
https://github.com/trustedsec/LLVM-Obfuscation-Experiments
synced 2026-06-08 17:57:15 +00: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);
|
|
}
|