diff --git a/llarp/link/link_manager.cpp b/llarp/link/link_manager.cpp index 6c6041a13..1e9c4a950 100644 --- a/llarp/link/link_manager.cpp +++ b/llarp/link/link_manager.cpp @@ -238,7 +238,7 @@ namespace llarp } log::critical( logcat, - "Bootstrap seed node was {} to confirm fetch requester is white-listed; {}successfully " + "Bootstrap seed node was {} to confirm remote is white-listed; {}successfully " "saved RID", result ? "able" : "unable", result ? "" : "un"); diff --git a/llarp/router_contact_remote.cpp b/llarp/router_contact_remote.cpp index 387ebf89c..98d70a4d6 100644 --- a/llarp/router_contact_remote.cpp +++ b/llarp/router_contact_remote.cpp @@ -59,7 +59,8 @@ namespace llarp try { - util::file_to_buffer(fname, buf.data(), buf.size()); + auto nread = util::file_to_buffer(fname, buf.data(), buf.size()); + buf.resize(nread); oxenc::bt_dict_consumer btdc{buf}; bt_load(btdc);