Replace strcpy with memmove Reviewed-by: andrew Backport-of: 01ec6950020268a375eb5330373e6c0813f3a924