Commit 7fd19abf by plusvic

Adapt yara-python to new API

parent f9e6a5ec
......@@ -724,7 +724,7 @@ int yara_callback(
{
yr_string_matches_foreach(string, m)
{
object = PyBytes_FromStringAndSize((char*) m->data, m->length);
object = PyBytes_FromStringAndSize((char*) m->data, m->data_length);
tuple = Py_BuildValue(
"(L,s,O)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment