about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index b9c77b10..a02c77e9 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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);
     }