diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-02-11 06:57:34 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-02-11 06:57:34 +0000 |
| commit | 94d663c6b6f69eb7066fc90e88e08f41a420ed49 (patch) | |
| tree | da00940943e743a2bc8a5f644215df439c19082b /psycopg/psycopgmodule.c | |
| parent | 95365f0f3e3fe489ade0acc14817b094d430d53b (diff) | |
| download | psycopg2-94d663c6b6f69eb7066fc90e88e08f41a420ed49.tar.gz | |
Fixed memory overflow.
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 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); |
