[GRASS-SVN] r36440 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 20 11:41:03 EDT 2009


Author: mmetz
Date: 2009-03-20 11:41:03 -0400 (Fri, 20 Mar 2009)
New Revision: 36440

Modified:
   grass/trunk/lib/vector/diglib/head.c
Log:
bugfix for #536 ???

Modified: grass/trunk/lib/vector/diglib/head.c
===================================================================
--- grass/trunk/lib/vector/diglib/head.c	2009-03-20 14:12:16 UTC (rev 36439)
+++ grass/trunk/lib/vector/diglib/head.c	2009-03-20 15:41:03 UTC (rev 36440)
@@ -63,16 +63,16 @@
 	}
 	else {
 	    /* write twice to fill the space and set offset (account for sizeof(off_t) == 4) */
-	    if (0 >= dig__fwrite_port_L(&(Map->head.size), 1, &(Map->dig_fp)))
+	    if (0 >= dig__fwrite_port_O(&(Map->head.size), 1, &(Map->dig_fp), 4))
 		return (0);
-	    if (0 >= dig__fwrite_port_L(&(Map->head.size), 1, &(Map->dig_fp)))
+	    if (0 >= dig__fwrite_port_O(&(Map->head.size), 1, &(Map->dig_fp), 4))
 		return (0);
 	}
     }
     else {
 	/* old vector with shorter coor head size got modified */
 	/* bytes 11 - 14 : size of coordinate file */
-	if (0 >= dig__fwrite_port_L(&(Map->head.size), 1, &(Map->dig_fp)))
+	if (0 >= dig__fwrite_port_O(&(Map->head.size), 1, &(Map->dig_fp), 4))
 	    return (0);
     }
 
@@ -147,7 +147,7 @@
     }
     else {
 	/* bytes 11 - 14 : size of coordinate file */
-	if (0 >= dig__fread_port_L(&(Map->head.size), 1, &(Map->dig_fp)))
+	if (0 >= dig__fread_port_O(&(Map->head.size), 1, &(Map->dig_fp), 4))
 	    return (0);
     }
     G_debug(2, "  coor size %ld", Map->head.size);



More information about the grass-commit mailing list