[GRASS-SVN] r47139 - grass/trunk/lib/display
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 17 11:27:58 EDT 2011
Author: martinl
Date: 2011-07-17 08:27:58 -0700 (Sun, 17 Jul 2011)
New Revision: 47139
Modified:
grass/trunk/lib/display/r_raster.c
Log:
displaylib: replace setenv() by G_putenv()
Modified: grass/trunk/lib/display/r_raster.c
===================================================================
--- grass/trunk/lib/display/r_raster.c 2011-07-17 15:19:12 UTC (rev 47138)
+++ grass/trunk/lib/display/r_raster.c 2011-07-17 15:27:58 UTC (rev 47139)
@@ -82,7 +82,7 @@
if (G_number_of_tokens(token) != 2)
continue;
G_debug(3, "\tread_env_file(): %s=%s", token[0], token[1]);
- setenv(token[0], token[1], 1);
+ G_putenv(token[0], token[1]);
G_free_tokens(token);
token = NULL;
}
@@ -124,9 +124,9 @@
if (v) {
if (p && G_strcasecmp(p, "ps") == 0)
- setenv("GRASS_PSFILE", v, 1);
+ G_putenv("GRASS_PSFILE", v);
else
- setenv("GRASS_PNGFILE", v, 1);
+ G_putenv("GRASS_PNGFILE", v);
}
G_asprintf(&env, "MONITOR_%s_ENVFILE", m);
More information about the grass-commit
mailing list