1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 19:06:39 +00:00

I don't like reformatting things over and over.

This commit is contained in:
AnyOldName3 2023-07-11 22:58:44 +01:00
parent 1bdcb5d6d9
commit 677c17530e

View file

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