[GRASS-SVN] r40858 -
grass/branches/develbranch_6/visualization/nviz/src
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 8 01:18:06 EST 2010
Author: glynn
Date: 2010-02-08 01:18:05 -0500 (Mon, 08 Feb 2010)
New Revision: 40858
Modified:
grass/branches/develbranch_6/visualization/nviz/src/nviz_init.c
Log:
G_parser() should be called with argv[0] pointing to the interpreter,
not the script (bug #902)
Modified: grass/branches/develbranch_6/visualization/nviz/src/nviz_init.c
===================================================================
--- grass/branches/develbranch_6/visualization/nviz/src/nviz_init.c 2010-02-08 02:30:59 UTC (rev 40857)
+++ grass/branches/develbranch_6/visualization/nviz/src/nviz_init.c 2010-02-08 06:18:05 UTC (rev 40858)
@@ -138,7 +138,7 @@
* If left in it treats it as a elev arg and tries to open
*/
argv2 = G_malloc((argc + 2) * sizeof(char *));
- argv2[0] = (char *)argv0;
+ argv2[0] = (char *) cmd;
for (ii = 0; ii < argc; ii++)
argv2[ii + 1] = (char *)argv[ii];
argv2[argc + 1] = NULL;
More information about the grass-commit
mailing list