mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
_cmd_set_boolean_preference: fix usage allocation
This commit is contained in:
parent
5e6a1fed78
commit
d234a71770
@ -1660,7 +1660,7 @@ _cmd_set_boolean_preference(const char * const inp, struct cmd_help_t help,
|
||||
cons_show(disabled->str);
|
||||
set_func(FALSE);
|
||||
} else {
|
||||
char usage[strlen(help.usage + 8)];
|
||||
char usage[strlen(help.usage) + 8];
|
||||
sprintf(usage, "Usage: %s", help.usage);
|
||||
cons_show(usage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user