Skip to content

Commit

Permalink
AP_DDS: sizeof replaced with ARRAY_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianofiorenzani committed Nov 19, 2024
1 parent 012f314 commit e3d2a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_DDS/AP_DDS_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "AP_DDS_Service_Table.h"
#include "AP_DDS_External_Odom.h"

#define STRCPY(D,S) strncpy(D, S, sizeof(D))
#define STRCPY(D,S) strncpy(D, S, ARRAY_SIZE(D))

// Enable DDS at runtime by default
static constexpr uint8_t ENABLED_BY_DEFAULT = 1;
Expand Down

0 comments on commit e3d2a6f

Please sign in to comment.