Browse Source

Fix filename truncation if O_NOLOC set

master
Arun Prakash Jana 4 years ago
parent
commit
4eae58edd3
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -2994,7 +2994,7 @@ static wchar_t *unescape(const char *str, uint maxcols)
size_t lencount = 0;

#ifdef NOLOCALE
memset(wbuf, 0, sizeof(NAME_MAX + 1));
memset(wbuf, 0, sizeof(NAME_MAX + 1) * sizeof(wchar_t));
#endif

/* Convert multi-byte to wide char */


Loading…
Cancel
Save