mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Remove redundant explicit null terminator
This commit is contained in:
parent
677c17530e
commit
899f0a4633
@ -25,7 +25,6 @@ namespace Crash
|
|||||||
if (length >= sizeof(buffer))
|
if (length >= sizeof(buffer))
|
||||||
length = sizeof(buffer) - 1;
|
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';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user