mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Avoid using the same buffer
This commit is contained in:
parent
3cf81482a4
commit
d3d9d1ed3a
1 changed files with 2 additions and 2 deletions
4
nnn.c
4
nnn.c
|
@ -1303,9 +1303,9 @@ END:
|
||||||
settimeout();
|
settimeout();
|
||||||
|
|
||||||
DPRINTF_S(buf);
|
DPRINTF_S(buf);
|
||||||
wcstombs(g_buf, buf, NAME_MAX);
|
wcstombs(g_buf + ((NAME_MAX + 1) << 4), buf, NAME_MAX);
|
||||||
clearprompt();
|
clearprompt();
|
||||||
return g_buf;
|
return g_buf + ((NAME_MAX + 1) << 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue