Use for loop in WPACKET_fill_lengths instead of do...while