1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 15:45:33 +00:00

Remove redundant explicit null terminator

This commit is contained in:
AnyOldName3 2023-07-12 14:46:32 +01:00
parent 677c17530e
commit 899f0a4633

View file

@ -25,7 +25,6 @@ namespace Crash
if (length >= sizeof(buffer))
length = sizeof(buffer) - 1;
strncpy_s(buffer, sizeof(buffer), Misc::StringUtils::u8StringToString(str).c_str(), length);
buffer[length] = '\0';
}
}