Skip to content
Snippets Groups Projects
Commit a44da3c1 authored by Morph's avatar Morph
Browse files

ips_layer: Delimit parsed hex value string

Delimits the hex value string on spaces, slashes, carriage returns or newlines, allowing for comments to be added in-line.
parent 72bf8441
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment