mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
Replace strdup with mystrdup
This commit is contained in:
@@ -2557,7 +2557,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
|
|||||||
newID = i;
|
newID = i;
|
||||||
luacon_sim->elements[i] = Element();
|
luacon_sim->elements[i] = Element();
|
||||||
luacon_sim->elements[i].Enabled = true;
|
luacon_sim->elements[i].Enabled = true;
|
||||||
luacon_sim->elements[i].Identifier = strdup(identifier.c_str());
|
luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2571,7 +2571,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
|
|||||||
newID = i;
|
newID = i;
|
||||||
luacon_sim->elements[i] = Element();
|
luacon_sim->elements[i] = Element();
|
||||||
luacon_sim->elements[i].Enabled = true;
|
luacon_sim->elements[i].Enabled = true;
|
||||||
luacon_sim->elements[i].Identifier = strdup(identifier.c_str());
|
luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user