diff options
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); |