[GRASS-SVN] r67038 - grass/trunk/raster/r.in.lidar

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 8 12:01:34 PST 2015


Author: wenzeslaus
Date: 2015-12-08 12:01:34 -0800 (Tue, 08 Dec 2015)
New Revision: 67038

Modified:
   grass/trunk/raster/r.in.lidar/string_list.c
Log:
r.in.lidar: use G_getl2 to support MS Windows CRLF (fixes r66601)

Modified: grass/trunk/raster/r.in.lidar/string_list.c
===================================================================
--- grass/trunk/raster/r.in.lidar/string_list.c	2015-12-07 16:52:34 UTC (rev 67037)
+++ grass/trunk/raster/r.in.lidar/string_list.c	2015-12-08 20:01:34 UTC (rev 67038)
@@ -31,7 +31,7 @@
     FILE *file = fopen(filename, "r");  /* should check the result */
     char *line = G_malloc(GPATH_MAX * sizeof(char));
 
-    while (G_getl(line, GPATH_MAX * sizeof(char), file)) {
+    while (G_getl2(line, GPATH_MAX * sizeof(char), file)) {
         G_debug(5, "line content from file %s: %s\n", filename, line);
         string_list_add_item(string_list, line);
         line = G_malloc(GPATH_MAX);



More information about the grass-commit mailing list