[GRASS-SVN] r31913 - grass/trunk/vector/v.in.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 30 17:10:24 EDT 2008


Author: glynn
Date: 2008-06-30 17:10:24 -0400 (Mon, 30 Jun 2008)
New Revision: 31913

Modified:
   grass/trunk/vector/v.in.ascii/points.c
Log:
Enlarge buffers


Modified: grass/trunk/vector/v.in.ascii/points.c
===================================================================
--- grass/trunk/vector/v.in.ascii/points.c	2008-06-30 21:10:04 UTC (rev 31912)
+++ grass/trunk/vector/v.in.ascii/points.c	2008-06-30 21:10:24 UTC (rev 31913)
@@ -74,7 +74,7 @@
     char *coorbuf, *tmp_token, *sav_buf;
     int skip = FALSE, skipped = 0;
 
-    buflen = 1000;
+    buflen = 4000;
     buf = (char *)G_malloc(buflen);
     buf_raw = (char *)G_malloc(buflen);
     coorbuf = (char *)G_malloc(256);
@@ -269,7 +269,7 @@
 		  int *coltype, int xcol, int ycol, int zcol, int catcol,
 		  int skip_lines)
 {
-    char *buf, buf2[1000];
+    char *buf, buf2[4000];
     int cat = 0;
     int row = 1;
     struct line_pnts *Points;



More information about the grass-commit mailing list