1
0
Fork 0
forked from suyu/suyu

Merge pull request #8755 from Morph1984/delimit-ips

ips_layer: Delimit parsed hex value string
This commit is contained in:
bunnei 2022-08-12 14:12:10 -07:00 committed by GitHub
commit cba3b05c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,7 +287,8 @@ void IPSwitchCompiler::Parse() {
std::copy(value.begin(), value.end(), std::back_inserter(replace));
} else {
// hex replacement
const auto value = patch_line.substr(9);
const auto value =
patch_line.substr(9, patch_line.find_first_of(" /\r\n", 9) - 9);
replace = Common::HexStringToVector(value, is_little_endian);
}