bugfix: import --fried was failing on tag values > 127

This commit is contained in:
Doug Hoyte
2024-09-06 00:10:32 -04:00
parent 1f34794945
commit 82226f3229

View File

@ -53,9 +53,11 @@ struct PackedEventView {
std::string_view b = buf.substr(88); std::string_view b = buf.substr(88);
while (b.size()) { while (b.size()) {
bool ret = cb(b[0], b.substr(2, (size_t)b[1])); char tagName = b[0];
size_t tagLen = (uint8_t)b[1];
bool ret = cb(tagName, b.substr(2, tagLen));
if (!ret) break; if (!ret) break;
b = b.substr(2 + b[1]); b = b.substr(2 + tagLen);
} }
} }
}; };