Skip to content

Commit

Permalink
bugfix: import --fried was failing on tag values > 127
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytech committed Sep 6, 2024
1 parent 1f34794 commit 82226f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PackedEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
};
Expand Down

0 comments on commit 82226f3

Please sign in to comment.