mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix length
This commit is contained in:
parent
46294e9f3d
commit
86648ab391
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue