commit 6689870460e5cc32544c5622359883870c43b58d
parent 01392d48ad47e44932bec57701bd9ac2921f0252
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sun, 26 Apr 2020 10:59:01 +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, NAME_MAX + 1);
+ memset(wbuf, 0, (NAME_MAX + 1) * sizeof(wchar_t));
#endif
/* Convert multi-byte to wide char */