mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Fix buffer cleanup
This commit is contained in:
parent
01392d48ad
commit
6689870460
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue