summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-02-02 21:12:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-02-02 21:12:16 +0100
commit28e811c09c5f32833906a5025137c947b2b7e0f6 (patch)
tree6a8357408cf85d16a6814a0bee2fbb5c57aa5919 /src/core/wee-command.c
parentd7cc27f713e02c2047f5d6085ec8e5d48b802522 (diff)
downloadweechat-28e811c09c5f32833906a5025137c947b2b7e0f6.zip
Use of sizeof(char) in all malloc/realloc for strings
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]);