diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-06 18:58:08 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-06 18:58:08 +0530 |
commit | 3dbe08aad6f68cc2aa09bdd227b4cf01c5688cc0 (patch) | |
tree | 0d2bba4b01094d0c57ba5ea226ee228005cefc8d /src | |
parent | d97d1522694684fc86af8e553c55b10b6321b7b7 (diff) | |
download | nnn-3dbe08aad6f68cc2aa09bdd227b4cf01c5688cc0.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 - 8); /* Subtract length of sessions */ + cfgdir = (char *)malloc(len); plugindir = (char *)malloc(len); sessiondir = (char *)malloc(len); if (!cfgdir || !plugindir || !sessiondir) { |