Changeset 1434

Show
Ignore:
Timestamp:
21.08.2000 09:12:13 (19 years ago)
Author:
sjboddie
Message:

oops, fixed bug in unix version of file_copy function

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/fileutil.cpp

    r1426 r1434  
    239239 
    240240#ifdef __WIN32__ 
    241 char *fromfilec = fromfile.getcstr(); 
    242 char *tofilec = tofile.getcstr(); 
    243 CopyFile (fromfilec, tofilec, FALSE); 
    244 delete fromfilec; 
    245 delete tofilec; 
    246  
    247 #else 
    248 text_t cp_cmd = "cp " + fromfile + " " + tofile; 
    249 char *cp_cmdc = cp_cmd.getcstr(); 
    250 system (cp_cmdc); 
    251 delete cp_cmd_c 
    252  
    253 #endif 
    254 } 
     241  char *fromfilec = fromfile.getcstr(); 
     242  char *tofilec = tofile.getcstr(); 
     243  CopyFile (fromfilec, tofilec, FALSE); 
     244  delete fromfilec; 
     245  delete tofilec; 
     246   
     247#else 
     248  text_t cp_cmd = "cp " + fromfile + " " + tofile; 
     249  char *cp_cmdc = cp_cmd.getcstr(); 
     250  system (cp_cmdc); 
     251  delete cp_cmdc; 
     252   
     253#endif 
     254}