Compiles and runs under Mac OS X

VS: ----------------------------------------------------------------------
This commit is contained in:
koennecke
2008-07-23 12:15:17 +00:00
parent fa59313759
commit adb5fc3436
4 changed files with 5 additions and 2 deletions

View File

@ -117,10 +117,10 @@ static void writePolterdiGlobal(NXhandle hfil, NXdict hdict,
NXDputalias(hfil,hdict,"estart",pBueffel);
SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument");
sprintf(pBueffel,"%d",strlen("SINQ, PSI, Switzerland"));
sprintf(pBueffel,"%ld",strlen("SINQ, PSI, Switzerland"));
NXDupdate(hdict,"strdim",pBueffel);
NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland");
sprintf(pBueffel,"%d",strlen("continous spallation source"));
sprintf(pBueffel,"%ld",strlen("continous spallation source"));
NXDupdate(hdict,"strdim",pBueffel);
NXDputalias(hfil,hdict,"stype","continous spallation source");
NXDupdate(hdict,"strdim","132");