[Gridflow-cvs] [svn] commit: r6347 - /trunk/src/formats.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Sep 24 14:17:15 EDT 2010


Author: matju
Date: Fri Sep 24 14:17:13 2010
New Revision: 6347

Log:
[#out grid]: fix crash in error message. this is the real such commit. The fake one is actually the same fix but in [parallel_port] instead.

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Fri Sep 24 14:17:13 2010
@@ -240,7 +240,7 @@
 		head.reserved = 0;
 		head.dimn = in.dim.n;
 		size_t sz = 4*in.dim.n;
-#define FRAISE(funk,f) RAISE("can't "#funk": %s",ferror(f));
+#define FRAISE(funk,f) RAISE("can't "#funk": %s",strerror(ferror(f)));
 		if (fwrite(&head,1,8,f    )< 8) FRAISE(fwrite,f);
 		if (fwrite(in.dim.v,1,sz,f)<sz) FRAISE(fwrite,f);
 	}



More information about the Gridflow-cvs mailing list