Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Sep 2, 2024
1 parent 53e02a7 commit 17d962a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/struct-holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class StructHolder
if (str)
{
char* newStr = (char*)allocate(std::strlen(str) + 1);
std::strcpy(newStr, str);
std::memcpy(newStr, str, std::strlen(str) + 1);
str = newStr;
}
}
Expand Down

0 comments on commit 17d962a

Please sign in to comment.