1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Fix some invalid heap ops found by Dr Memory

This commit is contained in:
2014-01-07 22:54:21 -05:00
parent a5758f91c6
commit 8cedb69e9e
4 changed files with 5 additions and 5 deletions

View File

@ -366,8 +366,8 @@ char* hsStrcpy(char dst[], const char src[])
{
if (dst == nil)
{
int count = strlen(src);
dst = (char *)malloc(count + 1);
size_t count = strlen(src);
dst = new char[count + 1];
memcpy(dst, src, count);
dst[count] = 0;
return dst;