mirror of https://github.com/python/cpython
Issue #3080: Fix case_ok() using case_bytes()
Invert name and namelen arguments.
This commit is contained in:
parent
22a8cbe8af
commit
1304f2d8a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue