[GRASS-SVN] r57831 - grass/branches/releasebranch_6_4/raster/r.sunmask
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 24 21:01:01 PDT 2013
Author: hamish
Date: 2013-09-24 21:01:01 -0700 (Tue, 24 Sep 2013)
New Revision: 57831
Modified:
grass/branches/releasebranch_6_4/raster/r.sunmask/main.c
Log:
hour=08 and hour=09 were being scanned as '0' due to %i reading those as base 8, so use %d instead (merge from trunk)
Modified: grass/branches/releasebranch_6_4/raster/r.sunmask/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.sunmask/main.c 2013-09-25 03:59:54 UTC (rev 57830)
+++ grass/branches/releasebranch_6_4/raster/r.sunmask/main.c 2013-09-25 04:01:01 UTC (rev 57831)
@@ -8,7 +8,7 @@
* Brad Douglas <rez touchofmadness.com>, Glynn Clements <glynn gclements.plus.com>,
* Hamish Bowman <hamish_b yahoo.com>, Paul Kelly <paul-grass stjohnspoint.co.uk>
* PURPOSE:
- * COPYRIGHT: (C) 1999-2006 by the GRASS Development Team
+ * COPYRIGHT: (C) 1999-2013 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
@@ -299,12 +299,12 @@
sscanf(parm.opt4->answer, "%lf", &dazi);
}
else {
- sscanf(parm.year->answer, "%i", &year);
- sscanf(parm.month->answer, "%i", &month);
- sscanf(parm.day->answer, "%i", &day);
- sscanf(parm.hour->answer, "%i", &hour);
- sscanf(parm.minutes->answer, "%i", &minutes);
- sscanf(parm.seconds->answer, "%i", &seconds);
+ sscanf(parm.year->answer, "%d", &year);
+ sscanf(parm.month->answer, "%d", &month);
+ sscanf(parm.day->answer, "%d", &day);
+ sscanf(parm.hour->answer, "%d", &hour);
+ sscanf(parm.minutes->answer, "%d", &minutes);
+ sscanf(parm.seconds->answer, "%d", &seconds);
sscanf(parm.timezone->answer, "%lf", &timezone);
}
More information about the grass-commit
mailing list