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

View file

@ -7972,12 +7972,12 @@ static bool setup_config(void)
return FALSE; return FALSE;
} }
len = xstrlen(xdgcfg) + 1 + 13; /* add length of "/nnn/sessions" */ len = xstrlen(xdgcfg) + 1 + 14; /* add length of "/nnn/bookmarks" */
xdg = TRUE; xdg = TRUE;
} }
if (!xdg) 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); cfgpath = (char *)malloc(len);
plgpath = (char *)malloc(len); plgpath = (char *)malloc(len);