Revision 692 branches/merge-trunk-davef/src/linad99/df_file.cpp

df_file.cpp (revision 692)
186 186
    {
187 187
      sprintf(&cmpdif_file_name[0],"cmpdiff.%s",ad_random_part);
188 188
    }
189
   
190
    adstring tmpstring;
191
    tmpstring=cmpdif_file_name;
192
#if ( defined(USE_ADMPI) || defined(USE_PTHREADS))
193
      add_slave_suffix(tmpstring);
194
#endif // #if defined(USE_ADMPI)
195
      //cout << tmpstring << endl;
196
      if (::length(tmpstring)>100)
197
      {
198
        cerr << "Need to increase length of cmpdif_file_name"
199
             << endl;
200
        ad_exit(1);
201
      }
202
     strncpy(&cmpdif_file_name[0],tmpstring,100);
203

  
189 204
#if defined (__MSVC32__) || defined (__WAT32__)
190 205
    file_ptr=open(cmpdif_file_name, O_RDWR | O_CREAT | O_TRUNC |
191 206
                     O_BINARY, S_IREAD | S_IWRITE);

Also available in: Unified diff