mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 17:15:39 +00:00
Remove redundant explicit null terminator
This commit is contained in:
parent
677c17530e
commit
899f0a4633
1 changed files with 0 additions and 1 deletions
|
@ -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…
Reference in a new issue