ardupilot/libraries/AP_Terrain
Peter Barker 5c4c7b5fd4 AP_Terrain: fix snprintf-overflow compilation error
[451/678] Compiling libraries/AP_Terrain/TerrainIO.cpp
../../libraries/AP_Terrain/TerrainIO.cpp: In member function ‘void AP_Terrain::open_file()’:
../../libraries/AP_Terrain/TerrainIO.cpp:167:35: error: ‘.DAT’ directive output may be truncated writing 4 bytes into a region of size between 2 and 5 [-Werror=format-truncation=]
  167 |     snprintf(p, 13, "/%c%02u%c%03u.DAT",
      |                                   ^~~~
compilation terminated due to -Wfatal-errors.
2020-08-07 12:36:12 +10:00
..
tools AP_Terrain: added verbose option to terrain tester 2020-06-18 13:29:13 +10:00
AP_Terrain.cpp AP_Terrain: added AP namespace access to terrain 2020-07-10 13:28:38 +10:00
AP_Terrain.h AP_Terrain: allow download of terrain data when no GPS lock 2020-07-28 12:15:43 +10:00
TerrainGCS.cpp AP_Terrain: allow download of terrain data when no GPS lock 2020-07-28 12:15:43 +10:00
TerrainIO.cpp AP_Terrain: fix snprintf-overflow compilation error 2020-08-07 12:36:12 +10:00
TerrainMission.cpp AP_Terrain: Fix AP_GPS.h include 2019-06-18 10:02:05 +10:00
TerrainUtil.cpp AP_Terrain: fixed bug in disk offset calculation 2020-05-05 11:21:33 +10:00