Commit 3bc07104 authored by Marc G. Fournier's avatar Marc G. Fournier

Replace strsep() by strtok()

By: Dan McGuirk <mcguirk@indirect.com>
parent d611b07d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment