change strtok(0.. to strtok(NULL..
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
This commit is contained in:
parent
bf872f0aff
commit
69c2c66196
@ -71,7 +71,7 @@ verify_password(char *user, char *password, Port *port,
|
||||
p = pw_file_line;
|
||||
|
||||
test_user = strtok(p, ":");
|
||||
test_pw = strtok(0, ":");
|
||||
test_pw = strtok(NULL, ":");
|
||||
if(!test_user || !test_pw ||
|
||||
test_user[0] == '\0' || test_pw[0] == '\0') {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user