Addresses two asserts that show up when debugging on windows
setsockopt was incorrectly casting the value of 1 to char * and passing this as the optval parameter. Instead, the address of the 1 value is passed
GetNumber during packet reading was incorrectly incrementing beyond the length of the packet, which would cause subsequent calls to copy_n in GetNumber to fail because data was out of bounds.
Addresses two asserts that show up when debugging on windows
setsockopt
was incorrectly casting the value of1
tochar *
and passing this as theoptval
parameter. Instead, the address of the1
value is passedGetNumber
during packet reading was incorrectly incrementing beyond the length of the packet, which would cause subsequent calls tocopy_n
inGetNumber
to fail because data was out of bounds.