Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
durswd committed Jul 22, 2023
1 parent bd12c45 commit e25ac13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dev/Cpp/Effekseer/Effekseer/Utils/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class FixedSizeString
FixedSizeString(const T* ptr)
{
size_t original_length = Traits::length(ptr);
size_ = std::min(data_.size(), original_length);
size_ = std::min(data_.size() - 1, original_length);
memcpy(data_.data(), ptr, size_ * sizeof(T));
data_[size_] = 0;
}
Expand Down

0 comments on commit e25ac13

Please sign in to comment.