Skip to content

Commit 85674a4

Browse files
authored
Fix esil string being directly passed to printf (no "%s") (#327)
1 parent f903624 commit 85674a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis_ghidra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ static void sleigh_esil(RzAnalysis *a, RzAnalysisOp *analysis_op, ut64 addr, con
13641364
if(!esil_stack.empty())
13651365
ss << ",CLEAR";
13661366
// std::cerr << hex << analysis_op->addr << " " << ss.str() << endl;
1367-
esilprintf(analysis_op, ss.str()[0] == ','? ss.str().c_str() + 1: ss.str().c_str());
1367+
esilprintf(analysis_op, "%s", ss.str()[0] == ','? ss.str().c_str() + 1: ss.str().c_str());
13681368
}
13691369

13701370
/* Not in use for now.

0 commit comments

Comments
 (0)