um: refactor deprecated strncpy to memcpy