Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3bc0710

Browse files
committed
Replace strsep() by strtok()
By: Dan McGuirk <mcguirk@indirect.com>
1 parentd611b07 commit3bc0710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/libpq/password.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ verify_password(char *user, char *password, Port *port,
6767
fgets(pw_file_line,255,pw_file);
6868
p=pw_file_line;
6969

70-
test_user=strsep(&p,":");
71-
test_pw=p;
70+
test_user=strtok(p,":");
71+
test_pw=strtok(0,":");
7272
if(!test_user|| !test_pw||
7373
test_user[0]=='\0'||test_pw[0]=='\0') {
7474
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp