commit 01392d48ad47e44932bec57701bd9ac2921f0252
parent 99d21531b45f61f0171cda4d1ae3a3262e8fde81
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sun, 26 Apr 2020 02:37:16 +0530
Fix buffer cleanup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 */