Changeset 5161
- Timestamp:
- 01/12/08 16:33:31 (8 months ago)
- Files:
-
- wire/trunk/wire/files.c (modified) (1 diff)
- wire/trunk/wire/terminal.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/wire/files.c
r5154 r5161 146 146 } 147 147 148 name = wi_string_last_path_component(path); 148 if(wi_string_has_suffix(path, WI_STR("/"))) 149 name = WI_STR(""); 150 else 151 name = wi_string_last_path_component(path); 152 149 153 root = wi_is_equal(name, WI_STR("/")); 150 154 count = wi_array_count(wr_files); wire/trunk/wire/terminal.c
r5079 r5161 457 457 458 458 for(i = 0; *text && i < bytes; i++) { 459 if(isspace(*text) )459 if(isspace(*text) || *text == '\"' || *text == '\'') 460 460 value[i++] = '\\'; 461 461
