[GRASS-SVN] r60805 - grass/trunk/display/d.rast.num

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 12 11:38:24 PDT 2014


Author: annakrat
Date: 2014-06-12 11:38:24 -0700 (Thu, 12 Jun 2014)
New Revision: 60805

Modified:
   grass/trunk/display/d.rast.num/main.c
Log:
d.rast.num: fix segfault due to uninitialized variable

Modified: grass/trunk/display/d.rast.num/main.c
===================================================================
--- grass/trunk/display/d.rast.num/main.c	2014-06-12 18:25:02 UTC (rev 60804)
+++ grass/trunk/display/d.rast.num/main.c	2014-06-12 18:38:24 UTC (rev 60805)
@@ -174,7 +174,7 @@
 
     if ((nrows > 75) || (ncols > 75)) {
         G_asprintf(&tmpstr1, _n("%d row", "%d rows", nrows), nrows);
-        G_asprintf(&tmpstr1, _n("%d col", "%d cols", ncols), ncols);
+        G_asprintf(&tmpstr2, _n("%d col", "%d cols", ncols), ncols);
         /* GTC %s will be replaced by strings "X rows" and "Y cols" */
         G_warning(_("Current region size: %s X %s\n"
 		    "Your current region setting may be too large. "



More information about the grass-commit mailing list