aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-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 */