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