diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-29 00:42:28 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-29 00:42:28 +0200 |
commit | 687c3b16f72a6b2b64971c1c27e33e27f001ede8 (patch) | |
tree | 9d9c6bedbf5f51f26a5f03a522eedddb852a3679 /Python/sysmodule.c | |
parent | ea8093a66d771ae68b016c578c7b44be51c819b1 (diff) | |
download | cpython-687c3b16f72a6b2b64971c1c27e33e27f001ede8.tar.gz |
Use the new Py_ARRAY_LENGTH macro
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index dea21490e2..3576cedf63 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1771,7 +1771,7 @@ sys_update_path(int argc, wchar_t **argv) the argument must be the full path anyway. */ wchar_t *ptemp; if (GetFullPathNameW(argv0, - sizeof(fullpath)/sizeof(fullpath[0]), + Py_ARRAY_LENGTH(fullpath), fullpath, &ptemp)) { argv0 = fullpath; |