mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 02:18:53 +02:00
ircd:Ⓜ️ Use buffer size constants.
This commit is contained in:
parent
994fc377c7
commit
952e3d1f02
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ namespace ircd::m::feds
|
|||
struct ircd::m::feds::request_base
|
||||
{
|
||||
const feds::opts *opts {nullptr};
|
||||
char origin[256];
|
||||
char origin[event::ORIGIN_MAX_SIZE];
|
||||
|
||||
request_base(const feds::opts &opts)
|
||||
:opts{&opts}
|
||||
|
|
|
@ -61,7 +61,7 @@ ircd::m::node::room::room(const m::node &node)
|
|||
assert(!empty(this->node.node_id));
|
||||
|
||||
// for compatibility with hashing legacy node_id's
|
||||
char buf[256 + 16];
|
||||
char buf[event::id::buf::SIZE + 16];
|
||||
mutable_buffer mb{buf};
|
||||
consume(mb, copy(mb, "::"_sv));
|
||||
consume(mb, copy(mb, this->node.node_id));
|
||||
|
|
Loading…
Reference in a new issue