Minder debugging

This commit is contained in:
Thulinma 2010-11-08 20:37:02 +01:00
parent e90b8df3f4
commit 5337680a43

View file

@ -48,7 +48,11 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
return false; return false;
} }
sofar += r; sofar += r;
if (sofar >= count){return true;} if (sofar == count){return true;}
if (sofar > count){
All_Hell_Broke_Loose = true;
fprintf(stderr, "ReadUntil fail: %s. Read too much. All Hell Broke Loose!\n", strerror(errno));
}
return false; return false;
} }