Browse Source
Merge pull request #8755 from Morph1984/delimit-ips
ips_layer: Delimit parsed hex value string
pull/15/merge
bunnei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/core/file_sys/ips_layer.cpp
|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|