Fix length

This commit is contained in:
Arun Prakash Jana 2021-08-17 01:03:28 +05:30
parent 46294e9f3d
commit 86648ab391
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions

View File

@ -7972,12 +7972,12 @@ static bool setup_config(void)
return FALSE;
}
len = xstrlen(xdgcfg) + 1 + 13; /* add length of "/nnn/sessions" */
len = xstrlen(xdgcfg) + 1 + 14; /* add length of "/nnn/bookmarks" */
xdg = TRUE;
}
if (!xdg)
len = xstrlen(home) + 1 + 21; /* add length of "/.config/nnn/sessions" */
len = xstrlen(home) + 1 + 22; /* add length of "/.config/nnn/bookmarks" */
cfgpath = (char *)malloc(len);
plgpath = (char *)malloc(len);