allocate one extra in pelist of ComlibSectionInfo::getRemotePelist() to avoid memory...
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 14 Jul 2005 19:43:31 +0000 (19:43 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 14 Jul 2005 19:43:31 +0000 (19:43 +0000)
src/ck-com/ComlibSectionInfo.C

index 5df76f9fd6c1f30d7a782dd5e44feef0df5ee550..bb9a414bcb988dd73da0ac8537434fd81eec0838 100644 (file)
@@ -133,7 +133,7 @@ void ComlibSectionInfo::getRemotePelist(int nindices,
     if(length > nindices)
         length = nindices;
     
-    pelist = new int[length];
+    pelist = new int[length+1];
     npes = 0;
 
     for(acount = 0; acount < nindices; acount++){