[GRASS-SVN] r38808 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 20 08:37:45 EDT 2009


Author: hamish
Date: 2009-08-20 08:37:45 -0400 (Thu, 20 Aug 2009)
New Revision: 38808

Modified:
   grass/trunk/lib/gis/alloc.c
Log:
change error msg so it makes sense to users who are not familiar with C (merge from devbr6)

Modified: grass/trunk/lib/gis/alloc.c
===================================================================
--- grass/trunk/lib/gis/alloc.c	2009-08-20 12:36:32 UTC (rev 38807)
+++ grass/trunk/lib/gis/alloc.c	2009-08-20 12:37:45 UTC (rev 38808)
@@ -38,7 +38,7 @@
 	
     buf = malloc(n);
     if (!buf)
-	G_fatal_error(_("G_malloc: unable to allocate %lu bytes at %s:%d"),
+	G_fatal_error(_("G_malloc: unable to allocate %lu bytes of memory at %s:%d"),
 		      (unsigned long) n, file, line);
 
     return buf;
@@ -73,7 +73,7 @@
 
     buf = calloc(m, n);
     if (!buf)
-	G_fatal_error(_("G_calloc: unable to allocate %lu * %lu bytes at %s:%d"),
+	G_fatal_error(_("G_calloc: unable to allocate %lu * %lu bytes of memory at %s:%d"),
 		      (unsigned long) m, (unsigned long) n, file, line);
 
     return buf;
@@ -112,7 +112,7 @@
 	buf = realloc(buf, n);
 
     if (!buf)
-	G_fatal_error(_("G_realloc: unable to allocate %lu bytes at %s:%d"),
+	G_fatal_error(_("G_realloc: unable to allocate %lu bytes of memory at %s:%d"),
 		      (unsigned long) n, file, line);
 
     return buf;



More information about the grass-commit mailing list