ardupilot/libraries/AP_AIS
Peter Barker 6bf29eca70 AP_AIS: remove incorrect use of strncat
the third argument is space remaining in buffer, not size of buffer...

../../libraries/AP_AIS/AP_AIS.cpp:183:71: warning: Potential buffer overflow. Replace with 'sizeof(multi) - strlen(multi) - 1' or use a safer 'strlcat' API [unix.cstring.BadSizeArg]
                    strncat(multi,_AIVDM_buffer[msg_parts[i]].payload,sizeof(multi));
                                                                      ^~~~~~~~~~~~~
../../libraries/AP_AIS/AP_AIS.cpp:185:49: warning: Potential buffer overflow. Replace with 'sizeof(multi) - strlen(multi) - 1' or use a safer 'strlcat' API [unix.cstring.BadSizeArg]
                strncat(multi,_incoming.payload,sizeof(multi));
2025-01-31 15:52:50 +11:00
..
AP_AIS_config.h AP_AIS: move to config.h pattern 2022-07-13 18:14:12 +10:00
AP_AIS.cpp AP_AIS: remove incorrect use of strncat 2025-01-31 15:52:50 +11:00
AP_AIS.h AP_AIS: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
LogStructure.h AP_AIS: rearrange log-structure ifdefs 2025-01-14 11:46:13 +11:00