mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Use xvasprintf not vasprintf.
This commit is contained in:
parent
068b92b051
commit
2964dde903
2
format.c
2
format.c
@ -224,7 +224,7 @@ format_log1(struct format_tree *ft, const char *from, const char *fmt, ...)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vasprintf(&s, fmt, ap);
|
xvasprintf(&s, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
log_debug("%s: %s", from, s);
|
log_debug("%s: %s", from, s);
|
||||||
|
Loading…
Reference in New Issue
Block a user