This commit is contained in:
Arun Prakash Jana 2020-03-06 18:58:08 +05:30
parent d97d152269
commit 3dbe08aad6
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -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) {