Changeset 4140

Show
Ignore:
Timestamp:
05/25/06 18:36:12 (2 years ago)
Author:
morris
Message:

Fix a crash in /cd

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/NEWS

    r4132 r4140  
    55- Add new /icon command, takes a path to an image file to use as icon 
    66- Fix a crash with parsing dates on some platforms 
     7- Fix a crash in /cd 
    78 
    891.1 
  • wire/trunk/wire/commands.c

    r4125 r4140  
    531531 
    532532static void wr_cmd_cd(wi_array_t *arguments) { 
     533        wi_string_t             *path; 
     534         
     535        path = wr_files_full_path(WI_ARRAY(arguments, 0)); 
    533536        wi_release(wr_files_cwd); 
    534         wr_files_cwd = wi_retain(wr_files_full_path(WI_ARRAY(arguments, 0))); 
     537        wr_files_cwd = wi_retain(path); 
    535538         
    536539        wr_printf_prefix(WI_STR("Changed directory to: %@"), wr_files_cwd);