mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-28 18:51:53 +01:00
bugfix: string conversion routine was returning size+1
this was true when only VT_STR existed
This commit is contained in:
parent
bbabb3d6fa
commit
e056f5670f
@ -334,7 +334,7 @@ int pyvar_to_idcvar(
|
|||||||
return 1;
|
return 1;
|
||||||
// String
|
// String
|
||||||
else if (PyString_Check(py_var))
|
else if (PyString_Check(py_var))
|
||||||
idc_var->_set_string(PyString_AsString(py_var), PyString_Size(py_var)+1);
|
idc_var->_set_string(PyString_AsString(py_var), PyString_Size(py_var));
|
||||||
// Float
|
// Float
|
||||||
else if (PyBool_Check(py_var))
|
else if (PyBool_Check(py_var))
|
||||||
idc_var->set_long(py_var == Py_True ? 1 : 0);
|
idc_var->set_long(py_var == Py_True ? 1 : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user