From edec06ae5e79e0f37c6984b96a350774c8e34520 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 21 Jun 2019 22:05:39 +0200 Subject: tracker/{pt,aruco}: fix snprintf invocation --- tracker-aruco/ftnoir_tracker_aruco.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index bdb41d44..9bf34c51 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -225,7 +225,6 @@ void aruco_tracker::draw_ar(bool ok) char buf[9]; ::snprintf(buf, sizeof(buf)-1, "Hz: %d", clamp(int(fps), 0, 9999)); - buf[sizeof(buf)-1] = '\0'; cv::putText(frame, buf, cv::Point(10, 32), cv::FONT_HERSHEY_PLAIN, 2, cv::Scalar(0, 255, 0), 1); } -- cgit v1.2.3