Replace strsep() by strtok()

By: Dan McGuirk <mcguirk@indirect.com>
This commit is contained in:
Marc G. Fournier 1997-03-18 21:43:06 +00:00
parent d611b07dd7
commit 3bc07104ae
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ verify_password(char *user, char *password, Port *port,
fgets(pw_file_line, 255, pw_file);
p = pw_file_line;
test_user = strsep(&p, ":");
test_pw = p;
test_user = strtok(p, ":");
test_pw = strtok(0, ":");
if(!test_user || !test_pw ||
test_user[0] == '\0' || test_pw[0] == '\0') {
continue;