Changeset 1452 in Sophya for trunk/SophyaLib/HiStats/xntuple.cc


Ignore:
Timestamp:
Apr 7, 2001, 1:20:35 PM (24 years ago)
Author:
cmv
Message:

gestion bug du /tmp->/tmp/ cmv 4/4/01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/xntuple.cc

    r1405 r1452  
    697697
    698698
    699 //! Defines swap file path for XNTuple objects (Default=/tmp)
     699//! Defines swap file path for XNTuple objects (Default=/tmp/)
    700700void  XNTuple::SetSwapPath(char* p)
    701701{
    702     if(!glob_swp) glob_swp = new char[MAXLEN+1] ;
    703     strncpy(glob_swp, p, MAXLEN) ;
     702    if(!glob_swp) glob_swp = new char[MAXLEN+2] ;
     703    strncpy(glob_swp,p,MAXLEN);
     704    if(glob_swp[strlen(glob_swp)] != '/') strcat(glob_swp,"/");
    704705}
    705706
Note: See TracChangeset for help on using the changeset viewer.