summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index febc05c52..65cedc6a1 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -363,7 +363,7 @@ command_builtin (void *data, struct t_gui_buffer *buffer,
else
{
length = strlen (argv_eol[1]) + 2;
- command = (char *)malloc (length);
+ command = (char *)malloc (length * sizeof (char));
if (command)
{
snprintf (command, length, "/%s", argv_eol[1]);