Changeset 2230 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Jun 17, 2009, 10:53:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-mountlist.c
r2219 r2230 652 652 /*@ buffers ********************************************************* */ 653 653 char *drive = NULL; 654 char *truncdrive = NULL; 654 655 655 656 long long size; … … 676 677 log_msg(8, "Putting %s with size %lli in list of drives", drive, size); 677 678 678 (void)truncate_to_drive_name(drive);679 log_msg(8, "drive truncated to %s", drive);679 truncdrive = truncate_to_drive_name(drive); 680 log_msg(8, "drive truncated to %s", truncdrive); 680 681 681 682 for (j = 0; 682 683 j < noof_drives 683 && strcmp(drivelist->el[j].device, drive) != 0; j++) {684 && strcmp(drivelist->el[j].device, truncdrive) != 0; j++) { 684 685 continue; 685 686 } 686 687 if (j == noof_drives) { 687 str ncpy(drivelist->el[noof_drives++].device, drive, 63);688 strcpy(drivelist->el[noof_drives++].device, truncdrive); 688 689 } 689 690 paranoid_free(drive); 691 paranoid_free(truncdrive); 690 692 } 691 693 drivelist->entries = noof_drives;
Note:
See TracChangeset
for help on using the changeset viewer.