Fix filename truncation if O_NOLOC set

This commit is contained in:
Arun Prakash Jana 2020-02-27 21:41:06 +05:30
parent b5339c2dc5
commit 4eae58edd3
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2994,7 +2994,7 @@ static wchar_t *unescape(const char *str, uint maxcols)
size_t lencount = 0;
#ifdef NOLOCALE
memset(wbuf, 0, sizeof(NAME_MAX + 1));
memset(wbuf, 0, sizeof(NAME_MAX + 1) * sizeof(wchar_t));
#endif
/* Convert multi-byte to wide char */