Small fix

This commit is contained in:
momo5502 2023-02-12 10:15:00 +01:00
parent d8e862819b
commit 54b15224dd

View File

@ -177,6 +177,11 @@ namespace utils::string
void copy(char* dest, const size_t max_size, const char* src) void copy(char* dest, const size_t max_size, const char* src)
{ {
if (!max_size)
{
return;
}
for (size_t i = 0;; ++i) for (size_t i = 0;; ++i)
{ {
if (i + 1 == max_size) if (i + 1 == max_size)