Skip to content

Commit c303c1e

Browse files
committed
Fix typo
1 parent db05828 commit c303c1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/fcntlmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ fcntl_ioctl_impl(PyObject *module, int fd, unsigned long code, PyObject *arg,
325325
}
326326
char *ptr = PyBytesWriter_GetData(writer);
327327
memcpy(ptr, view.buf, len);
328-
memcpy(buf + len, guard, GUARDSZ);
328+
memcpy(ptr + len, guard, GUARDSZ);
329329
PyBuffer_Release(&view);
330330

331331
do {

0 commit comments

Comments
 (0)