AP_Terrain: compile fix for gcc 9

This commit is contained in:
Andy Piper 2021-01-02 17:20:41 +00:00 committed by Andrew Tridgell
parent f1067eee81
commit 176c648156

View File

@ -175,7 +175,7 @@ void AP_Terrain::open_file(void)
if (lon_tmp > 999U) {
lon_tmp = 999;
}
snprintf(p, 13, "/%c%02u%c%03u.DAT",
hal.util->snprintf(p, 13, "/%c%02u%c%03u.DAT",
block.lat_degrees<0?'S':'N',
(unsigned)lat_tmp,
block.lon_degrees<0?'W':'E',