[GRASS-SVN] r62425 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 27 15:29:17 PDT 2014


Author: martinl
Date: 2014-10-27 15:29:17 -0700 (Mon, 27 Oct 2014)
New Revision: 62425

Modified:
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: enlarge buffer to avoid segfault on long text attributes

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2014-10-27 19:43:24 UTC (rev 62424)
+++ grass/trunk/vector/v.in.ogr/main.c	2014-10-27 22:29:17 UTC (rev 62425)
@@ -66,7 +66,7 @@
     double xmin, ymin, xmax, ymax;
     int ncols = 0, type;
     double min_area, snap;
-    char buf[2000], namebuf[2000];
+    char buf[DB_SQL_MAX], namebuf[1024];
     char *separator;
     
     struct Key_Value *loc_proj_info, *loc_proj_units;



More information about the grass-commit mailing list