summaryrefslogtreecommitdiff
path: root/plugins/yaml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/yaml')
-rw-r--r--plugins/yaml/python/reader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/yaml/python/reader.c b/plugins/yaml/python/reader.c
index 809ece2..a69e54f 100644
--- a/plugins/yaml/python/reader.c
+++ b/plugins/yaml/python/reader.c
@@ -84,6 +84,11 @@ static PyObject *py_yaml_reader_new_from_content(PyObject *self, PyObject *args)
"Load a Yaml content." \
)
+ /**
+ * La taille doit ĂȘtre de type 'int' et non 'Py_ssize_t', sinon les 32 bits
+ * de poids fort ne sont pas initialisés !
+ */
+
ret = PyArg_ParseTuple(args, "s#", &content, &length);
if (!ret) return NULL;