Checking two arrays for equality.

Or better:

    if (buffer[i] != buffer2[i]) {