[GRASS-SVN] r39684 - grass-addons/raster/r.terracost
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 6 03:33:08 EST 2009
Author: mmetz
Date: 2009-11-06 03:33:06 -0500 (Fri, 06 Nov 2009)
New Revision: 39684
Modified:
grass-addons/raster/r.terracost/main.cc
Log:
fix STREAM_DIR bug
Modified: grass-addons/raster/r.terracost/main.cc
===================================================================
--- grass-addons/raster/r.terracost/main.cc 2009-11-05 16:02:22 UTC (rev 39683)
+++ grass-addons/raster/r.terracost/main.cc 2009-11-06 08:33:06 UTC (rev 39684)
@@ -515,13 +515,13 @@
sprintf(buf, "%s=%s", STREAM_TMPDIR, opt->streamdir);
if(getenv(STREAM_TMPDIR) == NULL) {
printf("setenv %s\n", buf);
- if (putenv(buf) != 0) {
+ if (putenv(G_store(buf)) != 0) {
printf("cannot setenv %s\n",buf);
exit(1);
}
}
if (getenv(STREAM_TMPDIR) == NULL) {
- G_fatal_error("TREAM_TMPDIR not set");
+ G_fatal_error("STREAM_TMPDIR not set");
exit(1);
} else {
fprintf(stdout, "STREAM temporary files in %s\n", getenv(STREAM_TMPDIR));
@@ -536,7 +536,7 @@
if (getenv(VTMPDIR) == NULL) {
/* if not already set */
printf("setenv %s\n", buf);
- if(putenv(buf) !=0) {
+ if(putenv(G_store(buf)) !=0) {
printf("cannot setenv %s\n",buf);
exit(1);
}
More information about the grass-commit
mailing list