From f164d81c6a09bdb09f16ffcc6c05c2be5233eb5c Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 16 Sep 2010 19:51:21 +0000 Subject: Correct size of sqlstatus buffer --- libodbcpp/selectcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libodbcpp/selectcommand.cpp b/libodbcpp/selectcommand.cpp index 77e22f4..177a84e 100644 --- a/libodbcpp/selectcommand.cpp +++ b/libodbcpp/selectcommand.cpp @@ -43,7 +43,7 @@ ODBC::SelectCommand::fetch(SQLSMALLINT orientation, SQLLEN offset) return false; default: { - SQLCHAR sqlstatus[5]; + SQLCHAR sqlstatus[6]; RETCODE diagrc = SQLGetDiagRec(SQL_HANDLE_STMT, hStmt, 1, sqlstatus, NULL, NULL, 0, NULL); if (SQL_SUCCEEDED(diagrc)) { if (!strncmp((const char*)sqlstatus, "01004", 5)) { -- cgit v1.2.3