We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a2fbf commit a570ceeCopy full SHA for a570cee
mavros_extras/src/plugins/open_drone_id.cpp
@@ -174,8 +174,8 @@ class OpenDroneIDPlugin : public plugin::Plugin
174
template<size_t _N>
175
void set_string_z(std::array<uint8_t, _N> & a, const std::string & s)
176
{
177
- uint8_t* datap = a.data();
178
- strncpy(static_cast<char*>(static_cast<void*>(datap)), s.c_str(), a.size() - 1);
+ uint8_t * datap = a.data();
+ strncpy(static_cast<char *>(static_cast<void *>(datap)), s.c_str(), a.size() - 1);
179
a[a.size() - 1] = '\0';
180
}
181
0 commit comments