summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-03-29 08:12:25 -0400
committerPeter LaFosse <peter@vector35.com>2022-03-29 08:12:25 -0400
commitf0d9ba427994be01e08111bc8a45219a6cdaed42 (patch)
tree41c4c78b662389d239fc228bbaf697aa17701c0f /python
parent79ca1197fc3a6a20450d6838f158c7e7bb8298fa (diff)
Fixes #3028 usage of binaryninja.cstr in DebugInfo.add_function
Diffstat (limited to 'python')
-rw-r--r--python/debuginfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/debuginfo.py b/python/debuginfo.py
index a48182e6..37d0c3d6 100644
--- a/python/debuginfo.py
+++ b/python/debuginfo.py
@@ -415,7 +415,7 @@ class DebugInfo(object):
func_info.parameterCount = parameter_count
else:
func_info.parameterNames = (ctypes.c_char_p * parameter_count)(
- *map(lambda pair: binaryninja.cstr(pair[0]), new_func.parameters)
+ *map(lambda pair: core.cstr(pair[0]), new_func.parameters)
) # type: ignore
func_info.parameterTypes = (ctypes.POINTER(core.BNType) * parameter_count)(
*map(lambda pair: pair[1].handle, new_func.parameters)