Fix compiler warning.

This commit is contained in:
stolk 2020-04-03 09:47:28 -07:00
parent 3ab39d95a1
commit 4c2eb79f29

View File

@ -654,7 +654,7 @@ void PhysicsClientExample::createButtons()
{
if (m_numMotors < MAX_NUM_MOTORS)
{
char motorName[1024];
char motorName[1026];
snprintf(motorName, sizeof(motorName), "%s q", info.m_jointName);
// MyMotorInfo2* motorInfo = &m_motorTargetVelocities[m_numMotors];
MyMotorInfo2* motorInfo = &m_motorTargetPositions[m_numMotors];