summaryrefslogtreecommitdiff
path: root/dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch')
-rw-r--r--dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch b/dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch
deleted file mode 100644
index abcce61106d6..000000000000
--- a/dev-db/unixODBC/files/unixODBC-2.3.0-sqldriverconnect.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=358611
---- unixODBC-2.3.0.orig/DriverManager/SQLDriverConnect.c 2011-04-02 21:56:19.889301819 +0400
-+++ unixODBC-2.3.0/DriverManager/SQLDriverConnect.c 2011-04-02 21:58:37.129102095 +0400
-@@ -639,7 +639,7 @@
- {
- DMHDBC connection = (DMHDBC)hdbc;
- struct con_struct con_struct;
-- char *driver, *dsn = NULL, *filedsn, *tsavefile, savefile[ 128 ];
-+ char *driver, *dsn = NULL, *filedsn, *tsavefile, savefile[ INI_MAX_PROPERTY_VALUE + 1 ];
- char lib_name[ INI_MAX_PROPERTY_VALUE + 1 ];
- char driver_name[ INI_MAX_PROPERTY_VALUE + 1 ];
- SQLRETURN ret_from_connect;
-@@ -944,7 +944,13 @@
- tsavefile = __get_attribute_value( &con_struct, "SAVEFILE" );
- if ( tsavefile )
- {
-- strcpy( savefile, tsavefile );
-+ if ( strlen( tsavefile ) > INI_MAX_PROPERTY_VALUE ) {
-+ memcpy( savefile, tsavefile, INI_MAX_PROPERTY_VALUE );
-+ savefile[ INI_MAX_PROPERTY_VALUE ] = '\0';
-+ }
-+ else {
-+ strcpy( savefile, tsavefile );
-+ }
- }
- else
- {