[GRASS-SVN] r38807 - grass/branches/develbranch_6/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 20 08:36:32 EDT 2009
Author: hamish
Date: 2009-08-20 08:36:32 -0400 (Thu, 20 Aug 2009)
New Revision: 38807
Modified:
grass/branches/develbranch_6/lib/gis/alloc.c
Log:
change error msg so it makes sense to users who are not familiar with C
Modified: grass/branches/develbranch_6/lib/gis/alloc.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/alloc.c 2009-08-20 11:44:57 UTC (rev 38806)
+++ grass/branches/develbranch_6/lib/gis/alloc.c 2009-08-20 12:36:32 UTC (rev 38807)
@@ -40,7 +40,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;
@@ -111,7 +111,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