(getrpcport): Avoid using bcopy.