about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2012-11-16 13:44:15 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2012-11-16 13:44:15 +0200
commit5e6a1fed781eb5e31ff7d2c3446839ec8a3c5072 (patch)
tree8ea9d41e976b11e03f8a73c86c2cc0bf27a87ce1
parentb5d1a8edcba4b43ae6c88954299e9e70937e0fbb (diff)
downloadprofani-tty-5e6a1fed781eb5e31ff7d2c3446839ec8a3c5072.tar.gz
_cmd_tiny: fix allocation for usage variable
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 609b3817..b9c77b10 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1301,7 +1301,7 @@ _cmd_tiny(const char * const inp, struct cmd_help_t help)
     if (args == NULL) {
         cons_show("Usage: %s", help.usage);
         if (win_in_chat()) {
-            char usage[strlen(help.usage + 8)];
+            char usage[strlen(help.usage) + 8];
             sprintf(usage, "Usage: %s", help.usage);
             win_show(usage);
         }