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:
__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; }