Skip to content

Commit

Permalink
Fix strlcpy argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
thommey committed Jul 16, 2024
1 parent c0e29fc commit 6bb8584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/python.mod/pycmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static PyObject *py_findtclfunc(PyObject *self, PyObject *args) {
return NULL;
}
result = PyObject_New(TclFunc, &TclFuncType);
strlcpy(result->tclcmdname, sizeof result->tclcmdname, cmdname);
strlcpy(result->tclcmdname, cmdname, sizeof result->tclcmdname);
return (PyObject *)result;
}

Expand Down

0 comments on commit 6bb8584

Please sign in to comment.