mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_NavEKF2: add space for null-termination
This is simply to preserve existing behaviour when snprintf starts to null-terminate strings
This commit is contained in:
parent
f90dd0c156
commit
1c1d651979
@ -1155,7 +1155,7 @@ private:
|
||||
} mag_state;
|
||||
|
||||
// string representing last reason for prearm failure
|
||||
char prearm_fail_string[40];
|
||||
char prearm_fail_string[41];
|
||||
|
||||
// performance counters
|
||||
AP_HAL::Util::perf_counter_t _perf_UpdateFilter;
|
||||
|
Loading…
Reference in New Issue
Block a user