diff --git a/src/odbc/odbc.c b/src/odbc/odbc.c index 86f8bd0..faf1974 100644 --- a/src/odbc/odbc.c +++ b/src/odbc/odbc.c @@ -1797,7 +1797,7 @@ static SQLRETURN SQL_API _SQLGetData( { char *str = mdb_col_to_string(mdb, mdb->pg_buf, col->cur_value_start, col->col_type, col->cur_value_len); - int len = strlen(str) + 1; // including \0 + int len = strlen(str); if (stmt->pos >= len) { free(str); return SQL_NO_DATA;