Replace strsep() by strtok()
By: Dan McGuirk <mcguirk@indirect.com>
This commit is contained in:
parent
d611b07dd7
commit
3bc07104ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user