aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 02:37:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 02:37:16 +0530
commit01392d48ad47e44932bec57701bd9ac2921f0252 (patch)
tree1805d55919ec871f8cc8b56a1885e899f5283119 /src
parent99d21531b45f61f0171cda4d1ae3a3262e8fde81 (diff)
downloadnnn-01392d48ad47e44932bec57701bd9ac2921f0252.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 fbeb41b..9a90d84 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, sizeof(NAME_MAX + 1) * sizeof(wchar_t));
+ memset(wbuf, 0, NAME_MAX + 1);
#endif
/* Convert multi-byte to wide char */