mirror of
https://gitlab.com/BinaryHardening/cfgrip
synced 2026-07-26 12:41:08 +00:00
fix: unique output filenames per mode (.subs, .clean, .subs.clean)
This commit is contained in:
@@ -87,7 +87,10 @@ int main(int argc, char* argv[])
|
||||
cout << "functions: " << cfg.functions.size() << endl;
|
||||
cout << "indirect targets: " << cfg.indirect_targets.size() << endl;
|
||||
|
||||
string out = path + ".cfg";
|
||||
string suffix;
|
||||
if (subsOnly) suffix += ".subs";
|
||||
if (clean) suffix += ".clean";
|
||||
string out = path + suffix + ".cfg";
|
||||
ofstream f(out);
|
||||
if (f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user