Skip to content

Commit

Permalink
Fixed crash in t_msdev_bug (info.c): SQLGetConnectOption requires buf…
Browse files Browse the repository at this point in the history
…fer size of SQL_MAX_OPTION_STRING_LENGTH
  • Loading branch information
9EOR9 committed Feb 16, 2015
1 parent 983c240 commit e7a831f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ODBC_TEST(t_stmt_attr_status)

ODBC_TEST(t_msdev_bug)
{
SQLCHAR catalog[30];
SQLCHAR catalog[SQL_MAX_OPTION_STRING_LENGTH];
SQLINTEGER len;

CHECK_DBC_RC(Connection, SQLGetConnectOption(Connection, SQL_CURRENT_QUALIFIER, catalog));
Expand Down

0 comments on commit e7a831f

Please sign in to comment.