Skip to content

Commit

Permalink
Fix Errata bug where messages weren't copied to local storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 4, 2021
1 parent ec1f9d0 commit fcaca11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/include/swoc/Errata.h
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,9 @@ Errata::note(self_type &&that) {

inline Errata &
Errata::note(std::string_view text) {
this->note_localized(text);
auto span = this->alloc(text.size());
memcpy(span, text);
this->note_localized(span.view());
return *this;
}

Expand Down

0 comments on commit fcaca11

Please sign in to comment.