From e056f5670f05217b6dc8d6cdc56125131d9231d8 Mon Sep 17 00:00:00 2001 From: "elias.bachaalany" Date: Fri, 12 Feb 2010 12:56:14 +0000 Subject: [PATCH] bugfix: string conversion routine was returning size+1 this was true when only VT_STR existed --- swig/idaapi.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/idaapi.i b/swig/idaapi.i index 1debb47..4c1c4ac 100644 --- a/swig/idaapi.i +++ b/swig/idaapi.i @@ -334,7 +334,7 @@ int pyvar_to_idcvar( return 1; // String 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 else if (PyBool_Check(py_var)) idc_var->set_long(py_var == Py_True ? 1 : 0);