Skip to content

Commit 6fc04ea

Browse files
author
Daniel Kroening
committed
use run() in osx_fat_reader
1 parent cd593bb commit 6fc04ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/goto-programs/osx_fat_reader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Module: Read Mach-O
1818
#include <mach-o/fat.h>
1919
#endif
2020

21+
#include <util/run.h>
22+
2123
bool is_osx_fat_magic(char hdr[4])
2224
{
2325
#ifdef __APPLE__
@@ -79,7 +81,5 @@ bool osx_fat_readert::extract_gb(
7981
{
8082
assert(has_gb_arch);
8183

82-
std::string command=
83-
"lipo -thin hppa7100LC -output \""+dest+"\" \""+source+"\"";
84-
return system(command.c_str())!=0;
84+
return run("lipo", {"lipo", "-thin", "hppa7100LC", "-output", dest, source});
8585
}

0 commit comments

Comments
 (0)