diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-25 09:20:44 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-25 09:20:44 +0100 |
commit | 1aae49a2eba0323777ac3a7ca60a29ed6977f786 (patch) | |
tree | f6840667b57012778dc7d573d98b90df80ae8efa /src | |
parent | 59f4fe05bc9b103a44982b61d7213bbd012d3bdb (diff) | |
download | weechat-1aae49a2eba0323777ac3a7ca60a29ed6977f786.zip |
core: fix malloc size when building filename of upgrade file
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-upgrade-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-upgrade-file.c b/src/core/wee-upgrade-file.c index bb005f2b7..2048fbfbe 100644 --- a/src/core/wee-upgrade-file.c +++ b/src/core/wee-upgrade-file.c @@ -197,7 +197,7 @@ upgrade_file_new (const char *filename, int write) { /* build name of file */ length = strlen (weechat_home) + 1 + strlen (filename) + 16 + 1; - new_upgrade_file->filename = malloc (length + 1); + new_upgrade_file->filename = malloc (length); if (!new_upgrade_file->filename) { free (new_upgrade_file); |