diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-06 04:50:04 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-06 04:50:04 +0530 |
commit | d97d1522694684fc86af8e553c55b10b6321b7b7 (patch) | |
tree | 622f89f0ca9166286f56f342aeaab2033807a065 /src | |
parent | 9bfda074bd01558c303d8b673bb72d7297179fda (diff) | |
download | nnn-d97d1522694684fc86af8e553c55b10b6321b7b7.tar.gz |
Fix #486
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6489,7 +6489,7 @@ static bool setup_config(void) if (!xdg) len = strlen(home) + 1 + 21; /* add length of "/.config/nnn/sessions" */ - cfgdir = (char *)malloc(len - 9); /* Subtract length of sessions */ + cfgdir = (char *)malloc(len - 8); /* Subtract length of sessions */ plugindir = (char *)malloc(len); sessiondir = (char *)malloc(len); if (!cfgdir || !plugindir || !sessiondir) { |