Changeset 1168 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Feb 15, 2007, 12:27:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
r1125 r1168 5 5 #include "mr_mem.h" 6 6 #include "mr_msg.h" 7 #include "mr_str.h" 7 8 8 9 extern char *g_mondo_cfg_file; // where m*ndo-restore.cfg (the config file) is stored … … 215 216 strcpy(size_str, size_here); 216 217 // log_it ("Originals = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str); 217 strip_spaces(device_str);218 strip_spaces(mountpoint_str);219 strip_spaces(format_str);220 strip_spaces(size_str);218 mr_strip_spaces(device_str); 219 mr_strip_spaces(mountpoint_str); 220 mr_strip_spaces(format_str); 221 mr_strip_spaces(size_str); 221 222 // log_it ("Modified = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str); 222 223 if (b_res == bOK) { … … 278 279 ("Add variable", "Enter the name of the variable to add", sz_out, 279 280 MAX_STR_LEN)) { 280 strip_spaces(sz_out);281 mr_strip_spaces(sz_out); 281 282 items = raidrec->additional_vars.entries; 282 283 for (i = 0; … … 498 499 return; 499 500 } 500 strip_spaces(tmp);501 mr_strip_spaces(tmp); 501 502 if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') { 502 503 strcpy(sz, tmp); … … 552 553 return; 553 554 } 554 strip_spaces(tmp);555 mr_strip_spaces(tmp); 555 556 if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') { 556 557 strcpy(sz, tmp); … … 1231 1232 b_res = newtRunForm(myForm); 1232 1233 strcpy(device_str, device_here); 1233 strip_spaces(device_str);1234 mr_strip_spaces(device_str); 1234 1235 strcpy(mountpoint_str, mountpoint_here); 1235 strip_spaces(mountpoint_str);1236 mr_strip_spaces(mountpoint_str); 1236 1237 strcpy(format_str, format_here); 1237 strip_spaces(format_str);1238 mr_strip_spaces(format_str); 1238 1239 if (b_res == bOK && strstr(device_str, RAID_DEVICE_STUB) 1239 1240 && strstr(device_used_to_be, RAID_DEVICE_STUB) … … 1251 1252 && strcmp(mountlist->el[currline].mountpoint, "image")) { 1252 1253 strcpy(size_str, size_here); 1253 strip_spaces(size_str);1254 mr_strip_spaces(size_str); 1254 1255 } else { 1255 1256 sprintf(size_str, "%ld", … … 1898 1899 raidrec->additional_vars.el[lino].label, sz_out); 1899 1900 if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) { 1900 strip_spaces(sz_out);1901 mr_strip_spaces(sz_out); 1901 1902 strcpy(raidrec->additional_vars.el[lino].value, sz_out); 1902 1903 } … … 2306 2307 "At what path on this device can the ISO files be found?", 2307 2308 isodir_path, MAX_STR_LEN / 4)) { 2308 strip_spaces(isodir_device);2309 strip_spaces(isodir_format);2310 strip_spaces(isodir_path);2309 mr_strip_spaces(isodir_device); 2310 mr_strip_spaces(isodir_format); 2311 mr_strip_spaces(isodir_path); 2311 2312 log_it("%d - BBB - isodir_path = %s", isodir_path); 2312 2313 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.