[GRASS-SVN] r43738 - grass-addons/imagery/i.landsat.toar

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 30 03:39:12 EDT 2010


Author: hamish
Date: 2010-09-30 07:39:12 +0000 (Thu, 30 Sep 2010)
New Revision: 43738

Modified:
   grass-addons/imagery/i.landsat.toar/main.c
Log:
fix swapped variable name

Modified: grass-addons/imagery/i.landsat.toar/main.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/main.c	2010-09-30 06:15:06 UTC (rev 43737)
+++ grass-addons/imagery/i.landsat.toar/main.c	2010-09-30 07:39:12 UTC (rev 43738)
@@ -196,8 +196,8 @@
     if (pdate->answer != NULL) {
 	strncpy(lsat.creation, pdate->answer, 11);
 	lsat.creation[10] = '\0';
-	if (strlen(lsat.date) != 10)
-	    G_fatal_error(_("Illegal date format: [%s] (yyyy-mm-dd)"), lsat.date);
+	if (strlen(lsat.creation) != 10)
+	    G_fatal_error(_("Illegal date format: [%s] (yyyy-mm-dd)"), lsat.creation);
     }
     else
 	lsat.creation[0] = '\0';



More information about the grass-commit mailing list