Browse Source

Enlarge buffers

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31913 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 years ago
parent
commit
2954e7e626
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vector/v.in.ascii/points.c

+ 2 - 2
vector/v.in.ascii/points.c

@@ -74,7 +74,7 @@ int points_analyse(FILE * ascii_in, FILE * ascii, char *fs,
     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 points_to_bin(FILE * ascii, int rowlen, struct Map_info *Map,
 		  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;