[GRASS-SVN] r40861 - grass/branches/releasebranch_6_4/visualization/nviz/src

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 8 02:58:20 EST 2010


Author: hamish
Date: 2010-02-08 02:58:19 -0500 (Mon, 08 Feb 2010)
New Revision: 40861

Modified:
   grass/branches/releasebranch_6_4/visualization/nviz/src/nviz_init.c
Log:
Glynn: G_parser() should be called with argv[0] pointing to the
  interpreter, not the script (bug #902; merge from trunk)


Modified: grass/branches/releasebranch_6_4/visualization/nviz/src/nviz_init.c
===================================================================
--- grass/branches/releasebranch_6_4/visualization/nviz/src/nviz_init.c	2010-02-08 07:51:25 UTC (rev 40860)
+++ grass/branches/releasebranch_6_4/visualization/nviz/src/nviz_init.c	2010-02-08 07:58:19 UTC (rev 40861)
@@ -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