Fixes Windows build.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f64224131b
commit
49b5e2cfe9
|
@ -25,8 +25,7 @@ namespace ArbUt {
|
|||
public:
|
||||
__ConstStringCharHolder(const std::string_view& value) noexcept
|
||||
: _value(new char[value.length() + 1]), _references(1) {
|
||||
strncpy(_value, value.data(), value.length());
|
||||
_value[value.length()] = '\0';
|
||||
strncpy(_value, value.data(), value.length() + 1);
|
||||
}
|
||||
~__ConstStringCharHolder() { delete[] _value; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue