summaryrefslogtreecommitdiff
path: root/plugins/yaml/python/line.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/yaml/python/line.c')
-rw-r--r--plugins/yaml/python/line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/yaml/python/line.c b/plugins/yaml/python/line.c
index 11898d2..f098273 100644
--- a/plugins/yaml/python/line.c
+++ b/plugins/yaml/python/line.c
@@ -26,6 +26,7 @@
#include <pygobject.h>
+#include <string.h>
#include <plugins/pychrysalide/helpers.h>
@@ -92,7 +93,7 @@ static PyObject *py_yaml_line_new(PyTypeObject *type, PyObject *args, PyObject *
ret = PyArg_ParseTuple(args, "sn", &raw, &index);
if (!ret) return NULL;
- line = g_yaml_line_new(raw, index);
+ line = g_yaml_line_new(raw, strlen(raw), index);
if (line == NULL)
{