mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-03 15:18:15 +00:00
Memory safe I guess?
This commit is contained in:
parent
96c0a02229
commit
61eacf7d9a
|
@ -20,6 +20,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <img4tool/img4tool.hpp>
|
#include <img4tool/img4tool.hpp>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
extern "C"{
|
extern "C"{
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
@ -553,7 +554,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, std::string bootarg
|
||||||
if(!iBEC.first) {
|
if(!iBEC.first) {
|
||||||
info("Patching iBEC\n");
|
info("Patching iBEC\n");
|
||||||
iBEC = getIPSWComponent(_client, build_identity, "iBEC");
|
iBEC = getIPSWComponent(_client, build_identity, "iBEC");
|
||||||
iBEC = move(libipatcher::patchiBEC((char*)iBEC.first, iBEC.second, iBECKeys, bootargs));
|
iBEC = move(libipatcher::patchiBEC((char*)iBEC.first, iBEC.second, iBECKeys, std::move(bootargs)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_client->image4supported) {
|
if (_client->image4supported) {
|
||||||
|
|
Loading…
Reference in a new issue