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

Commit 0cd6283

Browse files
teetak01Antti Yli-Tokola
authored andcommitted
Merge pull request #475 from ARMmbed/fix_valgrind_warning
Fix invalid read of size warning.
2 parents 36d7909 + 9228883 commit 0cd6283

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
@@ -1720,7 +1720,7 @@ const String M2MNsdlInterface::internal_endpoint_name() const
17201720
// Get last part of the location path.
17211721
// In mbed Cloud environment full path is /rd/accountid/internal_endpoint
17221722
int location = temp.find_last_of('/') + 1;
1723-
iep.append((const char*)_nsdl_handle->ep_information_ptr->location_ptr + location,
1723+
iep.append_raw((const char*)_nsdl_handle->ep_information_ptr->location_ptr + location,
17241724
_nsdl_handle->ep_information_ptr->location_len - location);
17251725
}
17261726
return iep;

0 commit comments

Comments
 (0)