Changeset 3611 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondo-rstr-mountlist.c
- Timestamp:
- Nov 10, 2016, 9:09:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-rstr-mountlist.c
r3564 r3611 55 55 /*@ buffers ******************************************************** */ 56 56 char tmp = NULL; 57 char tmp1 = NULL; 57 58 char device[MAX_STR_LEN]; 58 59 … … 112 113 } 113 114 if (device_copies > 1) { 114 mr_asprintf(tmp, " %s %s's.", number_to_text(device_copies), device); 115 tmp1 = number_to_text(device_copies); 116 mr_asprintf(tmp, " %s %s's.", tmp1, device); 117 mr_free(tmp1); 115 118 if (!strstr(flaws_str, tmp)) { 116 119 log_it(tmp); … … 209 212 } 210 213 if (device_copies > 1) { 211 mr_asprintf(tmp, " %s %s's.", number_to_text(device_copies), device); 214 tmp1 = number_to_text(device_copies); 215 mr_asprintf(tmp, " %s %s's.", tmp1, device); 216 mr_free(tmp1); 212 217 if (!strstr(flaws_str, "%s", tmp)) { 213 218 log_it(tmp); … … 271 276 } 272 277 if (device_copies > 1) { 273 mr_asprintf(tmp, " %s %s's.", number_to_text(device_copies), device); 278 tmp1 = number_to_text(device_copies); 279 mr_asprintf(tmp, " %s %s's.", tmp1, device); 280 mr_free(tmp1); 274 281 if (!strstr(flaws_str, tmp)) { 275 282 log_it(tmp); … … 374 381 /*@ buffers ******************************************************** */ 375 382 char *tmp = NULL; 383 char *tmp1 = NULL; 376 384 char *device = NULL; 377 385 char *flaws_str = NULL; … … 452 460 } 453 461 if (device_copies > 1) { 454 mr_asprintf(tmp, " %s %s's.", number_to_text(device_copies), device); 462 tmp1 = number_to_text(device_copies); 463 mr_asprintf(tmp, " %s %s's.", tmp1, device); 464 mr_free(tmp1); 455 465 if (!strstr(flaws_str, tmp)) { 456 466 log_it(tmp); … … 536 546 struct list_of_disks *drivelist; 537 547 char *tmp = NULL; 548 char *tmp1 = NULL; 538 549 char *flaws_str = NULL; 539 550 … … 589 600 } 590 601 if (copies > 1 && last_copy == currline && strcmp(curr_mountpoint, "raid")) { 591 mr_asprintf(tmp, " %s %s's.", number_to_text(copies), curr_mountpoint); 602 tmp1 = number_to_text(copies); 603 mr_asprintf(tmp, " %s %s's.", tmp1, curr_mountpoint); 604 mr_free(tmp1); 592 605 log_msg(8,"Adding: %s to flaws_str", tmp); 593 606 if (flaws_str != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.