Quote Originally Posted by Fides Facit Fortis View Post
...
Still, the buffer couldn't be overflowing. recv is set to only accept 220 bytes, which is exactly the buffer size. Right?
Right,
but the 220-th character written into the buffer will overwrite the terminating NULL character, so the buffer could now contain the garbage beginning with the 221-th position!