diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-04-04 20:42:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-04-04 20:42:13 +0000 |
commit | d46e6438225d8741100dc400a4a63c87799f0945 (patch) | |
tree | c20b838ead99ca2558a188b84595115538c02dd2 /src/interfaces/ecpg/ecpglib/connect.c | |
parent | 9bad936f67cb7561d0d232ca365e23fe73219a1a (diff) | |
download | postgresql-d46e6438225d8741100dc400a4a63c87799f0945.tar.gz postgresql-d46e6438225d8741100dc400a4a63c87799f0945.zip |
Add Win32 path handling for / vs. \ and drive letters.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index 5c3c096dd57..69433bdc4b1 100644 --- a/src/interfaces/ecpg/ecpglib/connect.c +++ b/src/interfaces/ecpg/ecpglib/connect.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.1 2003/03/16 10:42:53 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.2 2003/04/04 20:42:13 momjian Exp $ */ #include "postgres_fe.h" @@ -326,7 +326,7 @@ ECPGconnect(int lineno, const char *name, const char *user, const char *passwd, *tmp = '\0'; } - tmp = strrchr(dbname + offset, '/'); + tmp = last_path_separator(dbname + offset); if (tmp != NULL) /* database name given */ { realname = strdup(tmp + 1); |