Changeset 3614 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Nov 18, 2016, 5:31:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-rstr-newt.c
r3611 r3614 198 198 b_res = newtRunForm(myForm); 199 199 mr_free(device_str); 200 mr_asprintf(device_str, "%s",device_here);200 device_str = mr_strip_spaces(device_here); 201 201 202 202 mr_free(mountpoint_str); 203 mr_asprintf(mountpoint_str, "%s", mountpoint_here); 204 mr_strip_spaces(mountpoint_str); 203 mountpoint_str = mr_strip_spaces(mountpoint_here); 205 204 206 205 mr_free(format_str); 207 mr_asprintf(format_str, "%s", format_here); 208 mr_strip_spaces(format_str); 206 format_str = mr_strip_spaces(format_here); 209 207 210 208 mr_free(size_str); 211 mr_asprintf(size_str, "%s", size_here); 212 mr_strip_spaces(size_str); 213 214 mr_strip_spaces(device_str); 209 size_str = mr_strip_spaces(size_here); 210 215 211 if (b_res == bOK) { 216 212 if (device_str[strlen(device_str) - 1] == '/') { … … 1208 1204 b_res = newtRunForm(myForm); 1209 1205 mr_free(device_str); 1210 mr_asprintf(device_str, "%s", device_here); 1211 mr_strip_spaces(device_str); 1206 device_str = mr_strip_spaces(device_here); 1212 1207 1213 1208 mr_free(mountpoint_str); 1214 mr_asprintf(mountpoint_str, "%s", mountpoint_here); 1215 mr_strip_spaces(mountpoint_str); 1209 mountpoint_str = mr_strip_spaces(mountpoint_here); 1216 1210 1217 1211 mr_free(format_str); 1218 mr_asprintf(format_str, "%s", format_here); 1219 mr_strip_spaces(format_str); 1212 format_str = mr_strip_spaces(format_here); 1220 1213 1221 1214 if (b_res == bOK && strstr(device_str, RAID_DEVICE_STUB) … … 1234 1227 && strcmp(mountlist->el[currline].mountpoint, "image")) { 1235 1228 mr_free(size_str); 1236 mr_asprintf(size_str, "%s", size_here); 1237 mr_strip_spaces(size_str); 1229 size_str = mr_strip_spaces(size_here); 1238 1230 } else { 1239 1231 mr_asprintf(size_str, "%ld", calculate_raid_device_size(mountlist, raidlist, mountlist->el[currline].device) / 1024);
Note:
See TracChangeset
for help on using the changeset viewer.