Fix memmove

This commit is contained in:
Anders Jenbo 2025-06-09 02:47:55 +02:00
parent 5be9b09b40
commit b9508fb665
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
SDL_strlwr(textureName);
if (textureName[0] == '^') {
memmove(textureName, textureName + 1, strlen(textureName + 1));
memmove(textureName, textureName + 1, strlen(textureName + 1) + 1);
if (g_modelPresenterConfig) {
texture = new LegoTexture();

View File

@ -91,7 +91,7 @@ MxResult LegoPartPresenter::Read(MxDSChunk& p_chunk)
SDL_strlwr(textureName);
if (textureName[0] == '^') {
memmove(textureName, textureName + 1, strlen(textureName + 1));
memmove(textureName, textureName + 1, strlen(textureName + 1) + 1);
if (g_partPresenterConfig1) {
texture = new LegoTexture();