fix off-by-one error in IPAddress::longestCommonPrefix()