aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-09 10:17:49 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-09 10:17:49 +0000
commite816b8ae1ffca491a67b1e12f75954ae2ccdbe95 (patch)
treeca7e1fc0fa63db457baac05a80424cbcf0e3d806 /Frameworks/PostgresKit/Source
parent8c8d1d7ca715c6534e02b7a4f78adf0d8c590185 (diff)
downloadsequelpro-e816b8ae1ffca491a67b1e12f75954ae2ccdbe95.tar.gz
sequelpro-e816b8ae1ffca491a67b1e12f75954ae2ccdbe95.tar.bz2
sequelpro-e816b8ae1ffca491a67b1e12f75954ae2ccdbe95.zip
NULL terminate parameter arrays.
Diffstat (limited to 'Frameworks/PostgresKit/Source')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresConnection.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresConnection.m b/Frameworks/PostgresKit/Source/FLXPostgresConnection.m
index b3a3918b..ed23c050 100644
--- a/Frameworks/PostgresKit/Source/FLXPostgresConnection.m
+++ b/Frameworks/PostgresKit/Source/FLXPostgresConnection.m
@@ -196,7 +196,6 @@ static void _FLXPostgresConnectionNoticeProcessor(void *arg, const char *message
_connectionError = [[NSString alloc] initWithUTF8String:PQerrorMessage(_connection)];
- // TODO: implement reconnection attempt
return NO;
}
@@ -336,7 +335,7 @@ static void _FLXPostgresConnectionNoticeProcessor(void *arg, const char *message
// Register type extensions
if (PQinitTypes(_connection)) {
- NSLog(@"PostgresKit: Warning: Failed initialise type extensions. Connection might return unexpected results!");
+ NSLog(@"PostgresKit: Error: Failed to initialise type extensions. Connection might return unexpected results!");
}
[self _loadDatabaseParameters];
@@ -448,7 +447,12 @@ static void _FLXPostgresConnectionNoticeProcessor(void *arg, const char *message
if (hasDatabase) {
_connectionParamNames[i] = FLXPostgresDatabaseParam;
_connectionParamValues[i] = [_database UTF8String];
+
+ i++;
}
+
+ _connectionParamNames[i] = '\0';
+ _connectionParamValues[i] = '\0';
}
#pragma mark -