|
From: <kin...@us...> - 2023-07-08 11:27:13
|
Revision: 7051
http://sourceforge.net/p/teem/code/7051
Author: kindlmann
Date: 2023-07-08 11:27:11 +0000 (Sat, 08 Jul 2023)
Log Message:
-----------
Propagating AIR_STRLEN --> AIR_STRLEN+1, with API CHANGE to struct:
miteUser
char shadeStr[AIR_STRLEN_MED + 1], /* how to do shading */
normalStr[AIR_STRLEN_MED + 1]; /* what is the "surface normal" */
Modified Paths:
--------------
teem/trunk/src/mite/mite.h
teem/trunk/src/mite/shade.c
teem/trunk/src/mite/txf.c
Modified: teem/trunk/src/mite/mite.h
===================================================================
--- teem/trunk/src/mite/mite.h 2023-07-08 11:21:19 UTC (rev 7050)
+++ teem/trunk/src/mite/mite.h 2023-07-08 11:27:11 UTC (rev 7051)
@@ -147,8 +147,8 @@
specification, its up to them to verify that the normalStr and the
shadeStr refer to the same vector.
*/
- char shadeStr[AIR_STRLEN_MED], /* how to do shading */
- normalStr[AIR_STRLEN_MED]; /* what is the "surface normal" */
+ char shadeStr[AIR_STRLEN_MED + 1], /* how to do shading */
+ normalStr[AIR_STRLEN_MED + 1]; /* what is the "surface normal" */
/* for each possible element of the txf range, what value should it
start at prior to rendering. Mainly needed to store non-unity values
for the quantities not covered by a transfer function */
Modified: teem/trunk/src/mite/shade.c
===================================================================
--- teem/trunk/src/mite/shade.c 2023-07-08 11:21:19 UTC (rev 7050)
+++ teem/trunk/src/mite/shade.c 2023-07-08 11:27:11 UTC (rev 7051)
@@ -175,7 +175,7 @@
void
miteShadeSpecPrint(char *buff, const miteShadeSpec *shpec) {
static const char me[] = "miteShadeSpecPrint";
- char var[4][AIR_STRLEN_MED];
+ char var[4][AIR_STRLEN_MED + 1];
if (buff && shpec) {
switch (shpec->method) {
Modified: teem/trunk/src/mite/txf.c
===================================================================
--- teem/trunk/src/mite/txf.c 2023-07-08 11:21:19 UTC (rev 7050)
+++ teem/trunk/src/mite/txf.c 2023-07-08 11:27:11 UTC (rev 7051)
@@ -257,10 +257,10 @@
return 1;
}
if (airStrlen(rangeStr) != ntxf->axis[0].size) {
- char stmp1[AIR_STRLEN_SMALL], stmp2[AIR_STRLEN_SMALL];
+ char stmp[2][AIR_STRLEN_SMALL + 1];
biffAddf(MITE, "%s: axis[0]'s size %s, but label specifies %s values", me,
- airSprintSize_t(stmp1, ntxf->axis[0].size),
- airSprintSize_t(stmp2, airStrlen(rangeStr)));
+ airSprintSize_t(stmp[0], ntxf->axis[0].size),
+ airSprintSize_t(stmp[1], airStrlen(rangeStr)));
return 1;
}
for (rii = 0; rii < airStrlen(rangeStr); rii++) {
@@ -300,7 +300,7 @@
/* has to be right length for one of the quantization schemes */
ilog2 = airLog2(ntxf->axis[axi].size);
if (-1 == ilog2) {
- char stmp[AIR_STRLEN_SMALL];
+ char stmp[AIR_STRLEN_SMALL + 1];
biffAddf(MITE, "%s: txf axis size for %s must be power of 2 (not %s)", me,
domStr, airSprintSize_t(stmp, ntxf->axis[axi].size));
return 1;
@@ -592,7 +592,7 @@
if (1 == isp.kind->table[isp.item].answerLength) {
stage->qn = NULL;
} else if (3 == isp.kind->table[isp.item].answerLength) {
- char stmp[AIR_STRLEN_SMALL];
+ char stmp[AIR_STRLEN_SMALL + 1];
ilog2 = AIR_UINT(airLog2(ntxf->axis[di].size));
switch (ilog2) {
case 8:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|