Revision: 41380
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41380&view=rev
Author:   brlcad
Date:     2010-11-16 19:38:45 +0000 (Tue, 16 Nov 2010)

Log Message:
-----------
fix a bug introduced into rrt, need to pass the pointer to the end of the 
gd_rt_cmd arg list so it appends correctly.

Modified Paths:
--------------
    brlcad/trunk/src/libged/rrt.c

Modified: brlcad/trunk/src/libged/rrt.c
===================================================================
--- brlcad/trunk/src/libged/rrt.c       2010-11-16 19:38:03 UTC (rev 41379)
+++ brlcad/trunk/src/libged/rrt.c       2010-11-16 19:38:45 UTC (rev 41380)
@@ -40,7 +40,6 @@
     char **vp;
     int i;
     size_t args;
-    static const char *usage = "options";
 
     GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
     GED_CHECK_DRAWABLE(gedp, GED_ERROR);
@@ -58,8 +57,10 @@
        *vp++ = (char *)argv[i];
     *vp++ = gedp->ged_wdbp->dbip->dbi_filename;
 
+    bu_log("vp[0]=%s vp[1]=%s\n", gedp->ged_gdp->gd_rt_cmd[0], 
gedp->ged_gdp->gd_rt_cmd[1]);
+
     _ged_current_gedp = gedp;
-    _ged_current_gedp->ged_gdp->gd_rt_cmd_len = ged_build_tops(gedp, 
_ged_current_gedp->ged_gdp->gd_rt_cmd, 
&_ged_current_gedp->ged_gdp->gd_rt_cmd[args]);
+    _ged_current_gedp->ged_gdp->gd_rt_cmd_len = ged_build_tops(gedp, vp, 
&_ged_current_gedp->ged_gdp->gd_rt_cmd[args]);
 
     (void)_ged_run_rt(gedp);
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to