Changeset 1434


Ignore:
Timestamp:
08/21/00 09:12:13 (20 years ago)
Author:
sjboddie
Message:

oops, fixed bug in unix version of file_copy function

File:
1 edited

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}
Note: See TracChangeset for help on using the changeset viewer.