Skip to content

Commit b60b6ef

Browse files
committed
Use macro
1 parent 04b3137 commit b60b6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getdents/_getdents.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ getdents_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5353
return NULL;
5454
}
5555

56-
if (buff_size < MAXNAMLEN + sizeof(struct linux_dirent64)) {
56+
if (buff_size < MIN_GETDENTS_BUFF_SIZE) {
5757
PyErr_SetString(
5858
PyExc_ValueError,
5959
"buff_size is too small"

0 commit comments

Comments
 (0)