--- imach/src/imach.c 2014/08/25 18:32:34 1.155 +++ imach/src/imach.c 2014/08/25 20:10:10 1.156 @@ -1,6 +1,9 @@ -/* $Id: imach.c,v 1.155 2014/08/25 18:32:34 brouard Exp $ +/* $Id: imach.c,v 1.156 2014/08/25 20:10:10 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + Revision 1.156 2014/08/25 20:10:10 brouard + *** empty log message *** + Revision 1.155 2014/08/25 18:32:34 brouard Summary: New compile, minor changes Author: Brouard @@ -517,11 +520,11 @@ extern int errno; #define ODIRSEPARATOR '/' #endif -/* $Id: imach.c,v 1.155 2014/08/25 18:32:34 brouard Exp $ */ +/* $Id: imach.c,v 1.156 2014/08/25 20:10:10 brouard Exp $ */ /* $State: Exp $ */ char version[]="Imach version 0.98nV, August 2014,INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121)"; -char fullversion[]="$Revision: 1.155 $ $Date: 2014/08/25 18:32:34 $"; +char fullversion[]="$Revision: 1.156 $ $Date: 2014/08/25 20:10:10 $"; char strstart[80]; char optionfilext[10], optionfilefiname[FILENAMELENGTH]; int erreur=0, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ @@ -5179,7 +5182,7 @@ calandcheckages(int imx, int maxwav, dou } else if(agev[m][i] >*agemax){ *agemax=agev[m][i]; - printf(" Max anint[%d][%d]=%.0f annais[%d]=%.0f, agemax=%.2f\n",m,i,anint[m][i], i,annais[i], *agemax); + /* printf(" Max anint[%d][%d]=%.0f annais[%d]=%.0f, agemax=%.2f\n",m,i,anint[m][i], i,annais[i], *agemax);*/ } /*agev[m][i]=anint[m][i]-annais[i];*/ /* agev[m][i] = age[i]+2*m;*/ @@ -5341,6 +5344,9 @@ int main(int argc, char *argv[]) i=strlen(pathr); if(pathr[i-1]=='\n') pathr[i-1]='\0'; + i=strlen(pathr); + if(pathr[i-1]==' ') /* This may happen when dragging on oS/X! */ + pathr[i-1]='\0'; for (tok = pathr; tok != NULL; ){ printf("Pathr |%s|\n",pathr); while ((val = strsep(&tok, "\"" )) != NULL && *val == '\0'); @@ -5396,7 +5402,7 @@ int main(int argc, char *argv[]) path=%s \n\ optionfile=%s\n\ optionfilext=%s\n\ - optionfilefiname=%s\n",pathimach,pathtot,path,optionfile,optionfilext,optionfilefiname); + optionfilefiname='%s'\n",pathimach,pathtot,path,optionfile,optionfilext,optionfilefiname); printf("Local time (at start):%s",strstart); fprintf(ficlog,"Local time (at start): %s",strstart);