mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix #486
This commit is contained in:
parent
9bfda074bd
commit
d97d152269
|
@ -6489,7 +6489,7 @@ static bool setup_config(void)
|
||||||
if (!xdg)
|
if (!xdg)
|
||||||
len = strlen(home) + 1 + 21; /* add length of "/.config/nnn/sessions" */
|
len = strlen(home) + 1 + 21; /* add length of "/.config/nnn/sessions" */
|
||||||
|
|
||||||
cfgdir = (char *)malloc(len - 9); /* Subtract length of sessions */
|
cfgdir = (char *)malloc(len - 8); /* Subtract length of sessions */
|
||||||
plugindir = (char *)malloc(len);
|
plugindir = (char *)malloc(len);
|
||||||
sessiondir = (char *)malloc(len);
|
sessiondir = (char *)malloc(len);
|
||||||
if (!cfgdir || !plugindir || !sessiondir) {
|
if (!cfgdir || !plugindir || !sessiondir) {
|
||||||
|
|
Loading…
Reference in a new issue