switch to lstring for vars passing

This commit is contained in:
Alessandro Molina 2024-06-04 22:55:59 +02:00
parent 463d25e973
commit cf7a8e1cae
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static PyObject *DukPy_eval_string(PyObject *self, PyObject *args) {
duk_pop(ctx);
/* Make passed arguments available as the dukpy global object */
duk_push_string(ctx, vars);
duk_push_lstring(ctx, vars, vars_len);
duk_json_decode(ctx, -1);
duk_put_global_string(ctx, "dukpy");