Revision: 76130
http://sourceforge.net/p/brlcad/code/76130
Author: starseeker
Date: 2020-06-12 12:35:14 +0000 (Fri, 12 Jun 2020)
Log Message:
-----------
Fix argv indexing
Modified Paths:
--------------
brlcad/branches/bioh/src/burst2/burst.cpp
Modified: brlcad/branches/bioh/src/burst2/burst.cpp
===================================================================
--- brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-12 12:32:46 UTC (rev
76129)
+++ brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-12 12:35:14 UTC (rev
76130)
@@ -573,22 +573,22 @@
ret = BRLCAD_ERROR;
}
- if (bu_opt_fastf_t(&msg, 1, &argv[2], (void *)&s->grndfr) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[3], (void *)&s->grndfr) < 0) {
brst_log(s, "problem reading distance out positive X-axis of target to
edge: %s\n", bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
- if (bu_opt_fastf_t(&msg, 1, &argv[2], (void *)&s->grndbk) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[4], (void *)&s->grndbk) < 0) {
brst_log(s, "problem reading distance out negative X-axis of target to
edge: %s\n", bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
- if (bu_opt_fastf_t(&msg, 1, &argv[2], (void *)&s->grndlf) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[5], (void *)&s->grndlf) < 0) {
brst_log(s, "problem reading distance out positive Y-axis of target to
edge: %s\n", bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
- if (bu_opt_fastf_t(&msg, 1, &argv[2], (void *)&s->grndrt) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[6], (void *)&s->grndrt) < 0) {
brst_log(s, "problem reading distance out negative Y-axis of target to
edge: %s\n", bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
@@ -1475,13 +1475,13 @@
ret = BRLCAD_ERROR;
}
- if (bu_opt_fastf_t(&msg, 1, &argv[1], (void *)&s->burstpoint[Y]) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[2], (void *)&s->burstpoint[Y]) < 0) {
brst_log(s, "problem reading coordinate Y value: %s\n",
bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
/* convert to mm */
- if (bu_opt_fastf_t(&msg, 1, &argv[1], (void *)&s->burstpoint[Z]) < 0) {
+ if (bu_opt_fastf_t(&msg, 1, &argv[3], (void *)&s->burstpoint[Z]) < 0) {
brst_log(s, "problem reading coordinate Z value: %s\n",
bu_vls_cstr(&msg));
ret = BRLCAD_ERROR;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits