[GRASS-SVN] r60806 - grass/branches/releasebranch_7_0/display/d.rast.num
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 12 11:40:10 PDT 2014
Author: annakrat
Date: 2014-06-12 11:40:10 -0700 (Thu, 12 Jun 2014)
New Revision: 60806
Modified:
grass/branches/releasebranch_7_0/display/d.rast.num/main.c
Log:
d.rast.num: fix segfault due to uninitialized variable (merge from trunk, r60805)
Modified: grass/branches/releasebranch_7_0/display/d.rast.num/main.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.rast.num/main.c 2014-06-12 18:38:24 UTC (rev 60805)
+++ grass/branches/releasebranch_7_0/display/d.rast.num/main.c 2014-06-12 18:40:10 UTC (rev 60806)
@@ -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