mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix filename truncation if O_NOLOC set
This commit is contained in:
parent
b5339c2dc5
commit
4eae58edd3
|
@ -2994,7 +2994,7 @@ static wchar_t *unescape(const char *str, uint maxcols)
|
||||||
size_t lencount = 0;
|
size_t lencount = 0;
|
||||||
|
|
||||||
#ifdef NOLOCALE
|
#ifdef NOLOCALE
|
||||||
memset(wbuf, 0, sizeof(NAME_MAX + 1));
|
memset(wbuf, 0, sizeof(NAME_MAX + 1) * sizeof(wchar_t));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Convert multi-byte to wide char */
|
/* Convert multi-byte to wide char */
|
||||||
|
|
Loading…
Reference in a new issue