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

Commit 8d6c7a0

Browse files
authored
Merge pull request #475 from ARMmbed/fix_valgrind_warning
Fix invalid read of size warning.
2 parents 82d18ca + cc005cc commit 8d6c7a0

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)