|
From: <kin...@us...> - 2024-07-17 17:58:08
|
Revision: 7219
http://sourceforge.net/p/teem/code/7219
Author: kindlmann
Date: 2024-07-17 17:58:04 +0000 (Wed, 17 Jul 2024)
Log Message:
-----------
fixing uses of AIR_STRLEN_x plus clang-format
Modified Paths:
--------------
teem/trunk/Testing/meet/buildinfo.c
teem/trunk/Testing/meet/probeSS.c
Modified: teem/trunk/Testing/meet/buildinfo.c
===================================================================
--- teem/trunk/Testing/meet/buildinfo.c 2024-07-17 17:55:33 UTC (rev 7218)
+++ teem/trunk/Testing/meet/buildinfo.c 2024-07-17 17:58:04 UTC (rev 7219)
@@ -44,7 +44,7 @@
char expapps[] = "_off_";
#endif
- char stmp1[AIR_STRLEN_SMALL], stmp2[AIR_STRLEN_SMALL];
+ char stmp1[AIR_STRLEN_SMALL + 1], stmp2[AIR_STRLEN_SMALL + 1];
AIR_UNUSED(argc);
AIR_UNUSED(argv);
@@ -55,7 +55,7 @@
printf("AIR_QNANHIBIT == %d\n", AIR_QNANHIBIT);
printf("sizeof(size_t) = %s; sizeof(void*) = %s\n",
airSprintSize_t(stmp1, sizeof(size_t)),
- airSprintSize_t(stmp2, sizeof(void*)));
+ airSprintSize_t(stmp2, sizeof(void *)));
printf("experimental libs %s; apps %s\n", explibs, expapps);
printf("libs = ");
Modified: teem/trunk/Testing/meet/probeSS.c
===================================================================
--- teem/trunk/Testing/meet/probeSS.c 2024-07-17 17:55:33 UTC (rev 7218)
+++ teem/trunk/Testing/meet/probeSS.c 2024-07-17 17:58:04 UTC (rev 7219)
@@ -85,7 +85,7 @@
static const char me[] = "engageGenTensor";
hestParm *hparm;
airArray *smop;
- char tmpStr[4][AIR_STRLEN_SMALL];
+ char tmpStr[4][AIR_STRLEN_SMALL + 1];
Nrrd *nclean;
NrrdIter *narg0, *narg1;
const char *helixArgv[] =
@@ -338,7 +338,7 @@
static const char me[] = "engageMopDiceVector";
gagePerVolume *pvl;
unsigned int ci;
- char stmp[AIR_STRLEN_SMALL];
+ char stmp[AIR_STRLEN_SMALL + 1];
if (!(4 == nvec->dim && 3 == nvec->axis[0].size)) {
biffAddf(BKEY, "%s: expected 4-D 3-by-X nrrd (not %u-D %s-by-X)", me, nvec->dim,
@@ -397,7 +397,7 @@
static const char me[] = "mopDiceDwi";
Nrrd **ndwiComp;
size_t dwiNum;
- char stmp[AIR_STRLEN_SMALL];
+ char stmp[AIR_STRLEN_SMALL + 1];
gagePerVolume *pvl;
unsigned int ci;
@@ -438,7 +438,7 @@
}
typedef struct {
- char name[AIR_STRLEN_SMALL];
+ char name[AIR_STRLEN_SMALL + 1];
const double **aptr; /* array of pointers to (const) answers */
gageItemSpec *ispec; /* array of gageItemSpecs (not pointers to them) */
unsigned int *alen; /* array of answer lengths */
@@ -466,7 +466,7 @@
multiAnswer *man;
man = AIR_CALLOC(1, multiAnswer);
- airStrcpy(man->name, AIR_STRLEN_SMALL, name);
+ airStrcpy(man->name, AIR_STRLEN_SMALL + 1, name);
multiAnswerInit(man);
return man;
}
@@ -887,9 +887,9 @@
airArray *mop;
const gageKind *kind[KIND_NUM];
- char name[KIND_NUM][AIR_STRLEN_SMALL] = {"scl", "vec", "ten", "dwi"};
- char nameComp[KIND_NUM][AIR_STRLEN_SMALL] = {"sclComp", "vecComp", "tenComp",
- "dwiComp"};
+ char name[KIND_NUM][AIR_STRLEN_SMALL + 1] = {"scl", "vec", "ten", "dwi"};
+ char nameComp[KIND_NUM][AIR_STRLEN_SMALL + 1] = {"sclComp", "vecComp", "tenComp",
+ "dwiComp"};
char *kernS;
gageKind *dwikind = NULL;
gageContext *gctxComp[KIND_NUM], *gctxCompCopy[KIND_NUM], *gctx[KIND_NUM],
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|