From 678c11f0481c7af2561e99af0cb3a470cddfc194 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 23 Jul 2019 18:33:17 +1000 Subject: [PATCH] AP_GPS: supply format string to send_text --- libraries/AP_GPS/GPS_Backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/GPS_Backend.cpp b/libraries/AP_GPS/GPS_Backend.cpp index 897b655388..2b2228fc3b 100644 --- a/libraries/AP_GPS/GPS_Backend.cpp +++ b/libraries/AP_GPS/GPS_Backend.cpp @@ -161,7 +161,7 @@ void AP_GPS_Backend::broadcast_gps_type() const { char buffer[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1]; _detection_message(buffer, sizeof(buffer)); - gcs().send_text(MAV_SEVERITY_INFO, buffer); + gcs().send_text(MAV_SEVERITY_INFO, "%s", buffer); } void AP_GPS_Backend::Write_AP_Logger_Log_Startup_messages() const