commit 355cf87b93207feb7a09c36c27f389531eeeecd3
parent 55aaef875d489e1617c8d27433c6d4bc6197bcf9
Author: Joris Vink <joris@coders.se>
Date: Fri, 27 Aug 2021 10:06:45 +0200
use correct format specifier.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/python.c b/src/python.c
@@ -5744,7 +5744,7 @@ python_kore_curl_setopt(struct pycurl_data *data, long opt, PyObject *value)
}
if (py_curlopt[i].name == NULL) {
- PyErr_Format(PyExc_RuntimeError, "invalid option '%d'", opt);
+ PyErr_Format(PyExc_RuntimeError, "invalid option '%ld'", opt);
return (NULL);
}