mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Fix SEGV bug in rhizome_bundle_result_sprintf()
This commit is contained in:
parent
cc26dd99e5
commit
61a4911934
@ -741,11 +741,8 @@ struct rhizome_bundle_result _rhizome_bundle_result_sprintf(struct __sourceloc _
|
||||
{
|
||||
struct rhizome_bundle_result result = INVALID_RHIZOME_BUNDLE_RESULT;
|
||||
result.status = status;
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
strbuf sb;
|
||||
STRBUF_ALLOCA_FIT(sb, 200, (strbuf_vsprintf(sb, fmt, ap)));
|
||||
va_end(ap);
|
||||
STRBUF_ALLOCA_FIT(sb, 200, strbuf_va_printf(sb, fmt));
|
||||
result.message = str_edup(strbuf_str(sb));
|
||||
result.free = free;
|
||||
log_rhizome_bundle_result(__whence, result);
|
||||
|
Loading…
Reference in New Issue
Block a user