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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user