aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-27 21:41:06 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-02-27 21:41:06 +0530
commit4eae58edd3e7513123fbda38e54a262da4a0a9f5 (patch)
tree3a458f4916e2056d7e174f4430f6419ea2005fcb /src
parentb5339c2dc54d6437468dd2697cd204e849081dc4 (diff)
downloadnnn-4eae58edd3e7513123fbda38e54a262da4a0a9f5.tar.gz
Fix filename truncation if O_NOLOC set
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 1d03160..44450e2 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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 */