Closed 537mfb closed 11 years ago
making it
if ((b == eq) && ((i + 2) < data.Length))
{
byte b1 = data[i + 1], b2 = data[i + 2];
Will work too
do you have an example this fails on so I can write a test for it?
Where you have
You should have
this prevents data[i + 2] froma throwing an Index out of bounds exception on certain messages