Skip to content

Commit fcaca11

Browse files
Fix Errata bug where messages weren't copied to local storage.
1 parent ec1f9d0 commit fcaca11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: code/include/swoc/Errata.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,9 @@ Errata::note(self_type &&that) {
762762

763763
inline Errata &
764764
Errata::note(std::string_view text) {
765-
this->note_localized(text);
765+
auto span = this->alloc(text.size());
766+
memcpy(span, text);
767+
this->note_localized(span.view());
766768
return *this;
767769
}
768770

0 commit comments

Comments
 (0)