correct off-by-one error on udp packet size