Issue #3080: Fix case_ok() using case_bytes()

Invert name and namelen arguments.
This commit is contained in:
Victor Stinner 2011-03-20 04:28:55 +01:00
parent 22a8cbe8af
commit 1304f2d8a3
1 changed files with 2 additions and 2 deletions

View File

@ -2208,8 +2208,8 @@ case_ok(PyObject *filename, Py_ssize_t prefix_delta, PyObject *name)
match = case_bytes(
PyBytes_AS_STRING(filebytes),
PyBytes_GET_SIZE(filebytes) + prefix_delta,
PyBytes_AS_STRING(namebytes),
PyBytes_GET_SIZE(namebytes));
PyBytes_GET_SIZE(namebytes),
PyBytes_AS_STRING(namebytes));
Py_DECREF(filebytes);
Py_DECREF(namebytes);
return match;