Minder debugging
This commit is contained in:
parent
e90b8df3f4
commit
5337680a43
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue