diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-26 10:59:01 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-26 10:59:01 +0530 |
commit | 6689870460e5cc32544c5622359883870c43b58d (patch) | |
tree | 0ad93f73474599edf73ed3479754e27fa8ed7165 /src | |
parent | 01392d48ad47e44932bec57701bd9ac2921f0252 (diff) | |
download | nnn-6689870460e5cc32544c5622359883870c43b58d.tar.gz |
Fix buffer cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3049,7 +3049,7 @@ static wchar_t *unescape(const char *str, uint maxcols) size_t lencount = 0; #ifdef NOLOCALE - memset(wbuf, 0, NAME_MAX + 1); + memset(wbuf, 0, (NAME_MAX + 1) * sizeof(wchar_t)); #endif /* Convert multi-byte to wide char */ |