Fixes Windows build.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-06-27 13:35:29 +02:00
parent f64224131b
commit 49b5e2cfe9
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ namespace ArbUt {
public: public:
__ConstStringCharHolder(const std::string_view& value) noexcept __ConstStringCharHolder(const std::string_view& value) noexcept
: _value(new char[value.length() + 1]), _references(1) { : _value(new char[value.length() + 1]), _references(1) {
strncpy(_value, value.data(), value.length()); strncpy(_value, value.data(), value.length() + 1);
_value[value.length()] = '\0';
} }
~__ConstStringCharHolder() { delete[] _value; } ~__ConstStringCharHolder() { delete[] _value; }