From 8f07a320a7700fc83936ff16e6869138cd964654 Mon Sep 17 00:00:00 2001 From: fayolle Date: Wed, 21 May 2008 16:30:45 +0000 Subject: [PATCH] *** empty log message *** --- src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx | 1 + src/DSC/DSC_User/Datastream/Calcium/calciumf.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.39.2