aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 10:59:01 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 10:59:01 +0530
commit6689870460e5cc32544c5622359883870c43b58d (patch)
tree0ad93f73474599edf73ed3479754e27fa8ed7165 /src
parent01392d48ad47e44932bec57701bd9ac2921f0252 (diff)
downloadnnn-6689870460e5cc32544c5622359883870c43b58d.tar.gz
Fix buffer cleanup
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 9a90d84..15f1daa 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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 */