mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-17 16:58:50 +00:00
increase max subId length from 39 to 63. snort.social was using size 45. fixes issue #7
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user