Hash = NewHash(1, NULL);
Buf = NewStrBuf();
- while ((len = StrBuf_ServGetln(Buf),
- strcmp(ChrPtr(Buf), "000"))) {
+ while ((len = StrBuf_ServGetln(Buf), (len >= 0) &&
+ ((len != 3) || !strcmp(ChrPtr(Buf), "000")))) {
Node = NewNode(Buf);
if (Node == NULL)
continue;
}
}
FreeStrBuf(&Buf);
+ DeleteHashPos(&where);
}
serv_puts("000");
}