diff --git a/astriumnet.c b/astriumnet.c index 2b86d5f..6aac4e9 100644 --- a/astriumnet.c +++ b/astriumnet.c @@ -93,7 +93,7 @@ static void encodeXML(Ascon *a) if(equal != NULL){ *equal = '\0'; equal++; - ptToKomma(equal); + /* ptToKomma(equal);*/ mxmlElementSetAttr(param,token,equal); } else { mxmlElementSetAttr(param,token,NULL); diff --git a/poldifold.c b/poldifold.c index 7acf1b3..255ff4b 100644 --- a/poldifold.c +++ b/poldifold.c @@ -61,6 +61,14 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void nDet = dim->value.v.intArray[0]; nSourceTof = dim->value.v.intArray[1]; + /* + check for badly initailized data array + */ + if(source->value.arrayLength < nDet*nSourceTof){ + SCWrite(pCon,"ERROR: hm data not initialised to correct length!", eError); + return 0; + } + /* ensure enough space to write */