[sr-dev] git:5.6:ca1e61ec: core: use memcpy and set end of string