increase max subId length from 39 to 63. snort.social was using size 45. fixes issue #7

This commit is contained in:
Doug Hoyte
2023-01-12 12:30:51 -05:00
parent ce5374d78b
commit 908b088642
2 changed files with 4 additions and 4 deletions

View File

@ -4,11 +4,11 @@
struct SubId {
char buf[40];
char buf[64];
SubId(std::string_view val) {
static_assert(MAX_SUBID_SIZE == 39, "MAX_SUBID_SIZE mismatch");
if (val.size() > 39) throw herr("subscription id too long");
static_assert(MAX_SUBID_SIZE == 63, "MAX_SUBID_SIZE mismatch");
if (val.size() > 63) throw herr("subscription id too long");
if (val.size() == 0) throw herr("subscription id too short");
auto badChar = [](char c){