aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 */