Sfoglia il codice sorgente

v.patch

increase buffer size for SQL statements to DB_SQL_MAX
Markus Metz 5 anni fa
parent
commit
ecc6e6f799
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      vector/v.patch/main.c

+ 1 - 1
vector/v.patch/main.c

@@ -613,7 +613,7 @@ int copy_records(dbDriver * driver_in, dbString * table_name_in,
 
     while (1) {
 	int more;
-	char buf[2000];
+	char buf[DB_SQL_MAX];
 
 	if (db_fetch(&cursor, DB_NEXT, &more) != DB_OK) {
 	    db_close_cursor(&cursor);