summaryrefslogtreecommitdiff
path: root/src/gui/gui-completion.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-01-07 14:27:29 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-01-07 14:27:29 +0100
commit9dd2c1b616cdbdce84ee055e10e6418eb1727010 (patch)
tree121de9518d5d896a54cd42f91e3e522b2334db2b /src/gui/gui-completion.c
parentd3a62a94345391efe9126febe19d96977fd8de89 (diff)
downloadweechat-9dd2c1b616cdbdce84ee055e10e6418eb1727010.zip
Remove some compiler warnings
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r--src/gui/gui-completion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c
index 477433217..dadd60b12 100644
--- a/src/gui/gui-completion.c
+++ b/src/gui/gui-completion.c
@@ -812,7 +812,8 @@ gui_completion_list_add_option_value (struct t_gui_completion *completion)
0, WEECHAT_LIST_POS_BEGINNING);
if (option_found->value)
{
- value_string = malloc (64);
+ length = 64;
+ value_string = malloc (length);
if (value_string)
{
snprintf (value_string, length,