Skip to content

Commit

Permalink
Fixed all -Werror=format-security
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jan 10, 2024
1 parent 1979ba2 commit d044c1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rtabmap_sync/include/rtabmap_sync/SyncDiagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SyncDiagnostic {

if(ros::Time::now().toSec()-lastCallbackCalledStamp_ >= 5 && !topicsNotReceivedWarningMsg_.empty())
{
ROS_WARN_THROTTLE(5, topicsNotReceivedWarningMsg_.c_str());
ROS_WARN_THROTTLE(5, "%s", topicsNotReceivedWarningMsg_.c_str());
}
}

Expand Down
2 changes: 1 addition & 1 deletion rtabmap_sync/src/nodelets/rgb_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class RgbSync : public nodelet::Nodelet
approxSync&&approxSyncMaxInterval!=std::numeric_limits<double>::max()?uFormat(", max interval=%fs", approxSyncMaxInterval).c_str():"",
imageSub_.getTopic().c_str(),
cameraInfoSub_.getTopic().c_str());
NODELET_INFO(subscribedTopicsMsg.c_str());
NODELET_INFO("%s", subscribedTopicsMsg.c_str());

syncDiagnostic_.reset(new SyncDiagnostic(nh, pnh, getName()));
syncDiagnostic_->init(rgb_nh.resolveName("image_rect"),
Expand Down
2 changes: 1 addition & 1 deletion rtabmap_sync/src/nodelets/rgbd_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class RGBDSync : public nodelet::Nodelet
imageSub_.getTopic().c_str(),
imageDepthSub_.getTopic().c_str(),
cameraInfoSub_.getTopic().c_str());
NODELET_INFO(subscribedTopicsMsg.c_str());
NODELET_INFO("%s", subscribedTopicsMsg.c_str());

syncDiagnostic_.reset(new SyncDiagnostic(nh, pnh, getName()));
syncDiagnostic_->init(rgb_nh.resolveName("image"),
Expand Down
2 changes: 1 addition & 1 deletion rtabmap_sync/src/nodelets/stereo_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class StereoSync : public nodelet::Nodelet
imageRightSub_.getTopic().c_str(),
cameraInfoLeftSub_.getTopic().c_str(),
cameraInfoRightSub_.getTopic().c_str());
NODELET_INFO(subscribedTopicsMsg.c_str());
NODELET_INFO("%s", subscribedTopicsMsg.c_str());

syncDiagnostic_.reset(new SyncDiagnostic(nh, pnh, getName()));
syncDiagnostic_->init(left_nh.resolveName("image_rect"),
Expand Down

0 comments on commit d044c1e

Please sign in to comment.