diff --git a/src/moab/MSR.c b/src/moab/MSR.c index 7b0af11..b692f08 100644 --- a/src/moab/MSR.c +++ b/src/moab/MSR.c @@ -2706,7 +2706,7 @@ int MSRProcessOConfig( char *TokPtr; int index; - int FMap[MAX_MATTR >> 5]; + int FMap[(MAX_MATTR >> 5) + 1]; MUBMClear(FMap,MAX_MATTR); diff --git a/src/server/UserI.c b/src/server/UserI.c index 45ddcd0..a1abead 100644 --- a/src/server/UserI.c +++ b/src/server/UserI.c @@ -5557,7 +5557,7 @@ int MUIJobSetAttr( { mqos_t *Q; - int QAL[MAX_MQOS >> 5]; + int QAL[(MAX_MQOS >> 5) + 1]; if (!(CFlags & ((1 << fAdmin1) | (1 << fAdmin2))) && (JobOwner == FALSE))