|
From: <kin...@us...> - 2023-07-08 11:18:39
|
Revision: 7049
http://sourceforge.net/p/teem/code/7049
Author: kindlmann
Date: 2023-07-08 11:18:37 +0000 (Sat, 08 Jul 2023)
Log Message:
-----------
Propagating AIR_STRLEN --> AIR_STRLEN+1, with these API CHANGEs to structs:
coilMethod:
char name[AIR_STRLEN_SMALL + 1];
coilKind:
char name[AIR_STRLEN_SMALL + 1]; /* short identifying string for kind */
Modified Paths:
--------------
teem/trunk/src/coil/coil.h
teem/trunk/src/coil/methodsCoil.c
Modified: teem/trunk/src/coil/coil.h
===================================================================
--- teem/trunk/src/coil/coil.h 2023-07-08 11:13:40 UTC (rev 7048)
+++ teem/trunk/src/coil/coil.h 2023-07-08 11:18:37 UTC (rev 7049)
@@ -105,7 +105,7 @@
** running one method, regardless of kind
*/
typedef struct {
- char name[AIR_STRLEN_SMALL];
+ char name[AIR_STRLEN_SMALL + 1];
int type; /* from coilMethodType* enum */
int numParm; /* number of parameters we need */
} coilMethod;
@@ -136,11 +136,11 @@
** at some point in the future where appropriate.
*/
typedef struct {
- char name[AIR_STRLEN_SMALL]; /* short identifying string for kind */
- unsigned int valLen; /* number of scalars per data point
- 1 for plain scalars (baseDim=0),
- or something else (baseDim=1) */
- /* all the available methods */
+ char name[AIR_STRLEN_SMALL + 1]; /* short identifying string for kind */
+ unsigned int valLen; /* number of scalars per data point
+ 1 for plain scalars (baseDim=0),
+ or something else (baseDim=1) */
+ /* all the available methods */
void (*filter[COIL_METHOD_TYPE_MAX + 1])(coil_t *delta, int xi, int yi, int zi,
coil_t **iv3, double spacing[3],
double parm[COIL_PARMS_NUM]);
Modified: teem/trunk/src/coil/methodsCoil.c
===================================================================
--- teem/trunk/src/coil/methodsCoil.c 2023-07-08 11:13:40 UTC (rev 7048)
+++ teem/trunk/src/coil/methodsCoil.c 2023-07-08 11:18:37 UTC (rev 7049)
@@ -127,7 +127,7 @@
sy = nin->axis[1 + baseDim].size;
sz = nin->axis[2 + baseDim].size;
if (sz < numThreads) {
- char stmp[AIR_STRLEN_SMALL];
+ char stmp[AIR_STRLEN_SMALL + 1];
airSprintSize_t(stmp, sz);
fprintf(stderr,
"%s: wanted %d threads but volume only has %s slices, "
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|