- if (fgets(buf, st.st_size + 1, fp)) {
- char *p;
-
- p = &buf[strlen(buf) - 1];
- while (*p == '\n' || *p == '\r') *p-- = '\0';
- wtokenid = strtok(buf, ":");
- wuserid = strtok(NULL, ":");
- wnonce = strtok(NULL, ":");
- hablob = strtok(NULL, ":");
- } else {