Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit cc005cc

Browse files
author
Antti Yli-Tokola
committed
Fix invalid read of size warning.
1 parent 275400c commit cc005cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/m2mnsdlinterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ const String M2MNsdlInterface::internal_endpoint_name() const
17281728
// Get last part of the location path.
17291729
// In mbed Cloud environment full path is /rd/accountid/internal_endpoint
17301730
int location = temp.find_last_of('/') + 1;
1731-
iep.append((const char*)_nsdl_handle->ep_information_ptr->location_ptr + location,
1731+
iep.append_raw((const char*)_nsdl_handle->ep_information_ptr->location_ptr + location,
17321732
_nsdl_handle->ep_information_ptr->location_len - location);
17331733
}
17341734
return iep;

0 commit comments

Comments
 (0)