mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (winnt_stat): use numberof
macro instead of constant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d6ace6121
commit
de59178aaf
1 changed files with 1 additions and 1 deletions
|
@ -5560,7 +5560,7 @@ winnt_stat(const WCHAR *path, struct stati64 *st)
|
|||
}
|
||||
st->st_mode = fileattr_to_unixmode(attr, path);
|
||||
if (len) {
|
||||
finalname[min(len, PATH_MAX-1)] = L'\0';
|
||||
finalname[min(len, numberof(finalname)-1)] = L'\0';
|
||||
path = finalname;
|
||||
if (wcsncmp(path, namespace_prefix, numberof(namespace_prefix)) == 0)
|
||||
path += numberof(namespace_prefix);
|
||||
|
|
Loading…
Add table
Reference in a new issue