summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-22 00:21:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-22 00:21:34 +0000
commita2cd78a559ddced86fd35ab9334bcdf270826f2b (patch)
tree0c5a49ccc9ba3dee2d6e48c9e52d5599cac0c730 /win32/win32.c
parent2431ad55b6907422651a4bbee8366950f0284916 (diff)
win32.c: use numberof
* win32/win32.c (open_dir_handle): use numberof() macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 445a5c4..b8563aa 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1845,7 +1845,7 @@ open_dir_handle(const WCHAR *filename, WIN32_FIND_DATAW *fd)
// Create the search pattern
//
len = lstrlenW(filename);
- scanname = ALLOCV_N(WCHAR, v, len + sizeof(wildcard) / sizeof(WCHAR));
+ scanname = ALLOCV_N(WCHAR, v, len + numberof(wildcard));
lstrcpyW(scanname, filename);
p = CharPrevW(scanname, scanname + len);
if (*p == L'/' || *p == L'\\' || *p == L':')