summaryrefslogtreecommitdiff
path: root/src/pooptmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pooptmodule.c')
-rw-r--r--src/pooptmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pooptmodule.c b/src/pooptmodule.c
index 43e4ff7c..7593d377 100644
--- a/src/pooptmodule.c
+++ b/src/pooptmodule.c
@@ -42,7 +42,7 @@ static PyObject* poopt_cut_text(PyObject* self, PyObject* args)
const char* buffer;
const int buffer_len;
- if (PyArg_ParseTuple(args, "ks#", &width, &buffer, &buffer_len) == 0)
+ if (PyArg_ParseTuple(args, "s#k", &buffer, &buffer_len, &width) == 0)
return NULL;
/* Pointer to the end of the string */
@@ -223,7 +223,7 @@ static PyObject* poopt_cut_by_columns(PyObject* self, PyObject* args)
const char* start;
const int len;
const size_t limit;
- if (PyArg_ParseTuple(args, "ks#", &limit, &start, &len) == 0)
+ if (PyArg_ParseTuple(args, "s#k", &start, &len, &limit) == 0)
return NULL;
const char* const end = start + len;