if (GetServerStatus(Line, &State) == 1)
{
Whok = NewHash(1, Flathash);
- while(!Done && StrBuf_ServGetln(Line))
+ while(!Done && (StrBuf_ServGetln(Line) >= 0) )
if ( (StrLength(Line)==3) &&
!strcmp(ChrPtr(Line), "000"))
{
StrBufTCP_read_line(Buf, &WC->serv_sock, 0, &Err); /* '100', we hope */
if (GetServerStatus(Buf, NULL) == 1)
{
- while(!Done && StrBuf_ServGetln(Buf))
+ while(!Done && StrBuf_ServGetln(Buf) >= 0)
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000"))
{
StrBuf_ServGetln(Buf);
if (GetServerStatus(Buf, NULL) == 1)
{
- while(!Done && StrBuf_ServGetln(Buf))
+ while(!Done && (StrBuf_ServGetln(Buf) >= 0))
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000"))
{
const char *Pos = NULL;
int Done = 0;
- while(!Done && StrBuf_ServGetln(Line))
+ while(!Done && (StrBuf_ServGetln(Line) >= 0))
if ( (StrLength(Line)==3) &&
!strcmp(ChrPtr(Line), "000"))
{