Skip to content

Commit

Permalink
Don't enforce a variable type shape
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Jun 15, 2024
1 parent a8c94c2 commit 7ca6a96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ auto push_string_input(const char* id, const Attribute::string_type& str)
// Make sure we leave one character available for the NUL terminator.
const auto copy_count = std::min(str.size(), buffer.size() - 1);

auto* copy_end = std::copy_n(str.begin(), copy_count, buffer.begin());
auto copy_end = std::copy_n(str.begin(), copy_count, buffer.begin());
*copy_end = '\0';

ImGui::SetNextItemWidth(-1.0f);
Expand Down

0 comments on commit 7ca6a96

Please sign in to comment.