Fix buffer cleanup

This commit is contained in:
Arun Prakash Jana 2020-04-26 02:37:16 +05:30
parent 99d21531b4
commit 01392d48ad
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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 */