Make options_tostring allocate its result instead of using a stack

buffer (needed for something in the future).
This commit is contained in:
nicm
2019-04-25 18:18:55 +00:00
parent 1677bb0dea
commit 32a81e197b
4 changed files with 32 additions and 41 deletions

2
tmux.h
View File

@ -1742,7 +1742,7 @@ u_int options_array_item_index(struct options_array_item *);
union options_value *options_array_item_value(struct options_array_item *);
int options_isarray(struct options_entry *);
int options_isstring(struct options_entry *);
const char *options_tostring(struct options_entry *, int, int);
char *options_tostring(struct options_entry *, int, int);
char *options_parse(const char *, int *);
struct options_entry *options_parse_get(struct options *, const char *, int *,
int);