From: fayolle Date: Wed, 21 May 2008 16:30:45 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: TG_ELNO_visualization_28May2008~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f07a320a7700fc83936ff16e6869138cd964654;p=modules%2Fkernel.git *** empty log message *** --- diff --git a/src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx b/src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx index ba39ba6fc..eab7a2a5d 100644 --- a/src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx +++ b/src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx @@ -119,6 +119,7 @@ struct Copy2UserSpace { std::cerr << std::endl; T1 * tmpData = data; + //Cette affichage peut provoquer la détection d'écriture d'un espace non initailisé. std::cerr << "-------- Copy2UserSpace MARK 1b --data("<(std::cerr," ")); diff --git a/src/DSC/DSC_User/Datastream/Calcium/calciumf.c b/src/DSC/DSC_User/Datastream/Calcium/calciumf.c index 557e1ed1a..30b9d133a 100644 --- a/src/DSC/DSC_User/Datastream/Calcium/calciumf.c +++ b/src/DSC/DSC_User/Datastream/Calcium/calciumf.c @@ -115,8 +115,10 @@ void F_FUNC(cplch,CPLCH)(long *compo,int *dep,float *ti,float *tf,int *iter,STR_ *err=cp_lch((void *)*compo,*dep,ti,tf,iter,cnom,*max,n,tabChaine,STR_LEN(tab)); +/* for (index = 0; index < *n; index++) */ +/* strcpy(&tab[index * STR_LEN(tab)], tabChaine[index]); */ for (index = 0; index < *n; index++) - strcpy(&tab[index * STR_LEN(tab)], tabChaine[index]); + strncpy(&tab[index * STR_LEN(tab)], tabChaine[index], strlen(tabChaine[index])); fprintf(stderr,"End of CPLCH: %s %f %f \n",cnom,*ti,*tf); if (tabChaine != (char **) NULL) {