nbd: change a parameter's type to remove a memcpy call