AP_InternalError: use strncpy_noterm

This commit is contained in:
Andrew Tridgell 2020-07-07 13:14:35 +10:00
parent 18deb1c0bd
commit 369861e4c0
1 changed files with 1 additions and 1 deletions

View File

@ -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