projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a10e05
)
Fix a misuse of 'char *' declaration.
author
Hiroshi Inoue
<inoue@tpf.co.jp>
Thu, 8 Feb 2001 01:54:29 +0000
(
01:54
+0000)
committer
Hiroshi Inoue
<inoue@tpf.co.jp>
Thu, 8 Feb 2001 01:54:29 +0000
(
01:54
+0000)
src/interfaces/odbc/connection.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/odbc/connection.c
b/src/interfaces/odbc/connection.c
index 98fbca2f794aa4b75059257307f56b9445436d2d..b528a69ea03ab2415677a2b99f05b6e2662d38a3 100644
(file)
--- a/
src/interfaces/odbc/connection.c
+++ b/
src/interfaces/odbc/connection.c
@@
-1403,7
+1403,7
@@
CC_lookup_pg_version(ConnectionClass *self)
HSTMT hstmt;
StatementClass *stmt;
RETCODE result;
-char
*szVersion = "0.0"
;
+char
szVersion[32]
;
int major, minor;
static char *func = "CC_lookup_pg_version";
@@
-1439,6
+1439,7
@@
static char *func = "CC_lookup_pg_version";
/* Extract the Major and Minor numbers from the string. */
/* This assumes the string starts 'Postgresql X.X' */
+ strcpy(szVersion, "0.0");
if (sscanf(self->pg_version, "%*s %d.%d", &major, &minor) >= 2) {
sprintf(szVersion, "%d.%d", major, minor);
self->pg_version_major = major;