[sr-dev] git:master:aac577a4: core: safer truncation of hostname using memcpy