File tree 1 file changed +2
-2
lines changed
src/app/clusters/service-area-server
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ struct LocationStructureWrapper : public chip::app::Clusters::ServiceArea::Struc
147
147
// Save the location name to buffer, so access and lifetime is controlled.
148
148
// If aLocationName is not null, create a CharSpan to reference the text.
149
149
// Make sure there is always a terminating character, mainly so we can get c_str for logging.
150
- memset (mLocationNameBuffer , 0 , sizeof (mLocationNameBuffer + 1 ));
150
+ memset (mLocationNameBuffer , 0 , sizeof (mLocationNameBuffer ));
151
151
152
152
// this assumes locationInfo structure was created above, if appropriate
153
153
if (!locationInfo.locationInfo .IsNull ())
@@ -326,7 +326,7 @@ struct MapStructureWrapper : public chip::app::Clusters::ServiceArea::Structs::M
326
326
// Save the map name to the buffer so that access and lifetime is controlled.
327
327
// Create a CharSpan reference the text.
328
328
// Make sure there is always a terminating character, mainly so we can get c_str for logging.
329
- memset (mMapNameBuffer , 0 , sizeof (mMapNameBuffer + 1 ));
329
+ memset (mMapNameBuffer , 0 , sizeof (mMapNameBuffer ));
330
330
331
331
if (aMapName.size () == 0 )
332
332
{
You can’t perform that action at this time.
0 commit comments