Removed unsafe functions

This commit is contained in:
andreja6
2018-11-01 13:52:11 -07:00
parent d51bde7330
commit 69d78f139f
2 changed files with 4 additions and 4 deletions

View File

@@ -67,9 +67,9 @@ void DataModelInstance::drawMessage(RenderDevice* rd)
}
}
char brkc[12];
sprintf(brkc, "%d", brickCount);
sprintf_s(brkc, "%d", brickCount);
char instc[12];
sprintf(instc, "%d", instCount);
sprintf_s(instc, "%d", instCount);
message = "Bricks: ";
message += brkc;
message += " Snaps: ";

View File

@@ -36,8 +36,8 @@ std::vector<PROPGRIDITEM> LevelInstance::getProperties()
PIT_EDIT));
sprintf(timerTxt, "%g", timer);
sprintf(scoreTxt, "%d", score);
sprintf_s(timerTxt, "%g", timer);
sprintf_s(scoreTxt, "%d", score);
properties.push_back(createPGI("Gameplay",
"InitialTimerValue",
"The ammount of time in seconds the player has to complete this level.\r\n\r\nPut 0 if time is limitless.",