mirror of https://github.com/ArduPilot/ardupilot
AP_InternalError: use strncpy_noterm
This commit is contained in:
parent
18deb1c0bd
commit
369861e4c0
|
@ -100,7 +100,7 @@ void AP_stack_overflow(const char *thread_name)
|
|||
if (!done_stack_overflow) {
|
||||
// we don't want to record the thread name more than once, as
|
||||
// first overflow can trigger a 2nd
|
||||
strncpy(hal.util->persistent_data.thread_name4, thread_name, 4);
|
||||
strncpy_noterm(hal.util->persistent_data.thread_name4, thread_name, 4);
|
||||
done_stack_overflow = true;
|
||||
}
|
||||
hal.util->persistent_data.fault_type = 42; // magic value
|
||||
|
|
Loading…
Reference in New Issue