Forráskód Böngészése

change error msg so it makes sense to users who are not familiar with C (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38808 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 éve
szülő
commit
2ab701af5d
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      lib/gis/alloc.c

+ 3 - 3
lib/gis/alloc.c

@@ -38,7 +38,7 @@ void *G__malloc(const char *file, int line, size_t n)
 	
     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 @@ void *G__calloc(const char *file, int line, size_t m, size_t n)
 
     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 @@ void *G__realloc(const char *file, int line, void *buf, size_t n)
 	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;