diff options
| author | James Henstridge <james@jamesh.id.au> | 2008-03-06 16:15:41 +0000 |
|---|---|---|
| committer | James Henstridge <james@jamesh.id.au> | 2008-03-06 16:15:41 +0000 |
| commit | 89cadcb55303ac5457e60b87f4c977a4405fa1b0 (patch) | |
| tree | 01fec223a34c3dd543c7ce591fb2af1f004fbf73 /psycopg/psycopgmodule.c | |
| parent | e55e2683cfea69409c74326422cc65b4c7327986 (diff) | |
| download | psycopg2-89cadcb55303ac5457e60b87f4c977a4405fa1b0.tar.gz | |
2008-03-07 Jason Erickson <jerickso@stickpeople.com>
* psycopg/psycopgmodule.c (psyco_connect): fix off by one error in
calculating the length of the DSN.
Diffstat (limited to 'psycopg/psycopgmodule.c')
| -rw-r--r-- | psycopg/psycopgmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c index 957c45f..a26aac1 100644 --- a/psycopg/psycopgmodule.c +++ b/psycopg/psycopgmodule.c @@ -144,7 +144,7 @@ psyco_connect(PyObject *self, PyObject *args, PyObject *keywds) PyOS_snprintf(port, 16, "%d", iport); if (dsn_static == NULL) { - size_t l = 45; /* len("dbname= user= password= host= port= sslmode=\0") */ + size_t l = 46; /* len(" dbname= user= password= host= port= sslmode=\0") */ if (database) l += strlen(database); if (host) l += strlen(host); |
