mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 08:06:21 +00:00
_cmd_tiny: fix allocation for usage variable
This commit is contained in:
@@ -1301,7 +1301,7 @@ _cmd_tiny(const char * const inp, struct cmd_help_t help)
|
|||||||
if (args == NULL) {
|
if (args == NULL) {
|
||||||
cons_show("Usage: %s", help.usage);
|
cons_show("Usage: %s", help.usage);
|
||||||
if (win_in_chat()) {
|
if (win_in_chat()) {
|
||||||
char usage[strlen(help.usage + 8)];
|
char usage[strlen(help.usage) + 8];
|
||||||
sprintf(usage, "Usage: %s", help.usage);
|
sprintf(usage, "Usage: %s", help.usage);
|
||||||
win_show(usage);
|
win_show(usage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user