17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-10 05:24:53 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-07 16:44:51 +01:00
177 changed files with 11657 additions and 833 deletions

View File

@@ -126,8 +126,8 @@ bool is_curved(segment_data const &Path)
void copy_text(char *Buffer, std::size_t const Size, std::string const &Text)
{
std::strncpy(Buffer, Text.c_str(), Size - 1);
Buffer[Size - 1] = 0;
// as much of the text as fits, always terminated
Buffer[Text.copy(Buffer, Size - 1)] = 0;
}
std::string lower_case(std::string Text)