COMP: Use memcpy for raw memory copy

CID 1106738 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)

Its a good practice to use memcpy over strncpy for non-null
terminated char sequences.

Change-Id: Icd4373c0528e46f007dba5f3246eb9538ef11867
BUG: Use string constructor which calculates str length

CID 1106758 (#1 of 1): Out-of-bounds access (OVERRUN)

It is preferred to use std::string constructors with count the
c-string length as opposed to manually specifying the length with is
error prone.

Change-Id: Iad6ccb87fb9fba90bf6c13db26284d50662999b2
Merge topic 'FixNullTermCopy'

06af07b COMP: Use memcpy for raw memory copy
Merge topic 'coverity_cid_1106758'

4ecdc3e BUG: Use string constructor which calculates str length