浏览代码

v.db.select increase buffer for query to not overflow in case of large number of column names passed to it (Fixes https://trac.osgeo.org/grass/ticket/3006; Backport of https://trac.osgeo.org/grass/changeset/68321)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@68322 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 9 年之前
父节点
当前提交
d1ec9a1bf8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vector/v.db.select/main.c

+ 1 - 1
vector/v.db.select/main.c

@@ -43,7 +43,7 @@ int main(int argc, char **argv)
     struct field_info *Fi;
     int ncols, col, more;
     struct Map_info Map;
-    char query[1024];
+    char query[4096];
     struct ilist *list_lines;
     char *fs, *vs;
     struct bound_box *min_box, *line_box;