aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-06 04:50:04 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-06 04:50:04 +0530
commitd97d1522694684fc86af8e553c55b10b6321b7b7 (patch)
tree622f89f0ca9166286f56f342aeaab2033807a065 /src
parent9bfda074bd01558c303d8b673bb72d7297179fda (diff)
downloadnnn-d97d1522694684fc86af8e553c55b10b6321b7b7.tar.gz
Fix #486
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 669884a..2ca5ee5 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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) {