diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-27 21:41:06 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-27 21:41:06 +0530 |
commit | 4eae58edd3e7513123fbda38e54a262da4a0a9f5 (patch) | |
tree | 3a458f4916e2056d7e174f4430f6419ea2005fcb /src | |
parent | b5339c2dc54d6437468dd2697cd204e849081dc4 (diff) | |
download | nnn-4eae58edd3e7513123fbda38e54a262da4a0a9f5.tar.gz |
Fix filename truncation if O_NOLOC set
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |