diff -up ./client_libs/libplayerc++/bindings/ruby/playercpp.i.cpp11 ./client_libs/libplayerc++/bindings/ruby/playercpp.i
--- ./client_libs/libplayerc++/bindings/ruby/playercpp.i.cpp11 2017-03-19 18:50:04.074744694 -0400
+++ ./client_libs/libplayerc++/bindings/ruby/playercpp.i 2017-03-19 18:50:15.532188950 -0400
@@ -48,7 +48,7 @@
}
catch (const PlayerCc::PlayerError &e) {
static VALUE playererror = rb_define_class("PlayerError", rb_eStandardError);
- rb_raise(playererror, e.GetErrorStr().c_str());
+ rb_raise(playererror, "%s", e.GetErrorStr().c_str());
}
}
diff -up ./server/drivers/position/roboteq/roboteq.cc.cpp11 ./server/drivers/position/roboteq/roboteq.cc
--- ./server/drivers/position/roboteq/roboteq.cc.cpp11 2017-03-19 18:36:24.957834025 -0400
+++ ./server/drivers/position/roboteq/roboteq.cc 2017-03-19 18:36:30.996070068 -0400
@@ -1263,7 +1263,7 @@ int roboteq::ProcessPosition1dCmd(int mo
}
position_value = (unsigned char) (fabs(position) / rad_per_tick);
PLAYER_MSG1(MESSAGE_DEBUG,"Setting position_value to %d",position_value);
- if (motors_enabled == false || motor_enabled[motor_index] == false) {
+ if (motors_enabled == false || *motor_enabled[motor_index] == false) {
position_value = 0;
PLAYER_MSG0(MESSAGE_INFO, "Warning, the motors are disabled! Enable them before use.");
}