From 035e03a35e61d8b18523175e073257033d534db5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 15 Apr 2019 14:28:05 -0700 Subject: [PATCH] modules/federation/federation: Make all origin string-copying calls the same. --- modules/federation/federation.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/federation/federation.cc b/modules/federation/federation.cc index 654bb473f..c8dd6da56 100644 --- a/modules/federation/federation.cc +++ b/modules/federation/federation.cc @@ -62,7 +62,7 @@ ircd::m::feds::perspective(const opts &opts, v1opts.dynamic = false; v1opts.remote = string_view { - request.origin, strlcpy{request.origin, origin} + strlcpy{request.origin, origin} }; const m::v1::key::server_key server_key @@ -96,7 +96,7 @@ ircd::m::feds::version(const opts &opts, opts.dynamic = false; opts.remote = string_view { - request.origin, strlcpy{request.origin, origin} + strlcpy{request.origin, origin} }; return m::v1::version @@ -127,7 +127,7 @@ ircd::m::feds::backfill(const opts &opts, v1opts.limit = opts.argi[0]; v1opts.remote = string_view { - request.origin, strlcpy{request.origin, origin} + strlcpy{request.origin, origin} }; return m::v1::backfill @@ -187,7 +187,7 @@ ircd::m::feds::event(const opts &opts, v1opts.dynamic = true; v1opts.remote = string_view { - request.origin, strlcpy{request.origin, origin} + strlcpy{request.origin, origin} }; return m::v1::event