[GRASS-SVN] r40859 - grass/trunk/visualization/nviz/src

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 8 01:18:45 EST 2010


Author: glynn
Date: 2010-02-08 01:18:45 -0500 (Mon, 08 Feb 2010)
New Revision: 40859

Modified:
   grass/trunk/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/trunk/visualization/nviz/src/nviz_init.c
===================================================================
--- grass/trunk/visualization/nviz/src/nviz_init.c	2010-02-08 06:18:05 UTC (rev 40858)
+++ grass/trunk/visualization/nviz/src/nviz_init.c	2010-02-08 06:18:45 UTC (rev 40859)
@@ -137,7 +137,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