Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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));
- Loading branch information