1
1
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:
Dmitry Podgorny 2012-11-16 13:49:26 +02:00
parent 5e6a1fed78
commit d234a71770

View File

@ -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);
}