From 3bc07104ae06bbbe84cd5353166b7686fbafd357 Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Tue, 18 Mar 1997 21:43:06 +0000
Subject: [PATCH] Replace strsep() by strtok()

By: Dan McGuirk <mcguirk@indirect.com>
---
 src/backend/libpq/password.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/libpq/password.c b/src/backend/libpq/password.c
index b9ec4d55cc6..6d93b4094dc 100644
--- a/src/backend/libpq/password.c
+++ b/src/backend/libpq/password.c
@@ -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;
-- 
GitLab