Small fix
This commit is contained in:
parent
d8e862819b
commit
54b15224dd
@ -177,6 +177,11 @@ namespace utils::string
|
||||
|
||||
void copy(char* dest, const size_t max_size, const char* src)
|
||||
{
|
||||
if (!max_size)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (size_t i = 0;; ++i)
|
||||
{
|
||||
if (i + 1 == max_size)
|
||||
|
Loading…
Reference in New Issue
Block a user