From cb3ffc8fd29b044200714f820fa4c974159d76e4 Mon Sep 17 00:00:00 2001 From: Andrea Marcelli Date: Fri, 23 Oct 2020 15:48:29 +0200 Subject: [PATCH] Bug fixes Issue #22 --- ghida_plugin/idaxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghida_plugin/idaxml.py b/ghida_plugin/idaxml.py index 7876126..4be5462 100644 --- a/ghida_plugin/idaxml.py +++ b/ghida_plugin/idaxml.py @@ -1575,9 +1575,9 @@ def export_stack_vars(self, function, sframe): regcmt = ida_struct.get_member_cmt(member.id, False) rptcmt = ida_struct.get_member_cmt(member.id, True) if regcmt != None: - regcmt = ida_lines.tag_remove(regcmt + " ", 0) + regcmt = ida_lines.tag_remove(regcmt + " ") if rptcmt != None: - rptrcmt = ida_lines.tag_remove(rptcmt + " ", 0) + rptrcmt = ida_lines.tag_remove(rptcmt + " ") has_regcmt = regcmt != None and len(regcmt) > 0 has_rptcmt = rptcmt != None and len(rptcmt) > 0 has_content = has_regcmt or has_rptcmt