Memory safe I guess?

This commit is contained in:
Cryptic 2021-10-22 11:22:39 -07:00
parent 96c0a02229
commit 61eacf7d9a
No known key found for this signature in database
GPG key ID: 6027B509EFE3A76B

View file

@ -20,6 +20,7 @@
#endif
#include <img4tool/img4tool.hpp>
#include <utility>
extern "C"{
#include "common.h"
@ -553,7 +554,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, std::string bootarg
if(!iBEC.first) {
info("Patching iBEC\n");
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) {