mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 08:18:51 +00:00
bugfix: import --fried was failing on tag values > 127
This commit is contained in:
@ -53,9 +53,11 @@ struct PackedEventView {
|
||||
std::string_view b = buf.substr(88);
|
||||
|
||||
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;
|
||||
b = b.substr(2 + b[1]);
|
||||
b = b.substr(2 + tagLen);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user