summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-02-11 06:57:34 +0000
committerFederico Di Gregorio <fog@initd.org>2006-02-11 06:57:34 +0000
commit94d663c6b6f69eb7066fc90e88e08f41a420ed49 (patch)
treeda00940943e743a2bc8a5f644215df439c19082b /psycopg/psycopgmodule.c
parent95365f0f3e3fe489ade0acc14817b094d430d53b (diff)
downloadpsycopg2-94d663c6b6f69eb7066fc90e88e08f41a420ed49.tar.gz
Fixed memory overflow.
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 4e4c546..f711df8 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 == NULL) {
- int l = 36; /* len("dbname= user= password= host= port=\0") */
+ int l = 45; /* len("dbname= user= password= host= port= sslmode=\0") */
if (database) l += strlen(database);
if (host) l += strlen(host);