Changeset 1129 in MondoRescue
- Timestamp:
- Feb 10, 2007, 11:42:54 AM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-devices.c
r1128 r1129 1521 1521 } 1522 1522 if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) { 1523 if (!popup_and_get_string(_("Speed"), comment, tmp )) {1523 if (!popup_and_get_string(_("Speed"), comment, tmp, 4)) { 1524 1524 log_to_screen(_("User has chosen not to backup the PC")); 1525 1525 finish(1); … … 1535 1535 bkpinfo->backup_media_string); 1536 1536 1537 if (!popup_and_get_string("Size", comment, sz_size )) {1537 if (!popup_and_get_string("Size", comment, sz_size, 5)) { 1538 1538 log_to_screen(_("User has chosen not to backup the PC")); 1539 1539 finish(1); … … 1571 1571 bkpinfo->backup_media_string); 1572 1572 if (!popup_and_get_string 1573 (_("Device?"), comment, bkpinfo->media_device )) {1573 (_("Device?"), comment, bkpinfo->media_device, MAX_STR_LEN / 4)) { 1574 1574 log_to_screen(_("User has chosen not to backup the PC")); 1575 1575 finish(1); … … 2518 2518 { 2519 2519 static char output[4]; 2520 char *tmp ;2521 char *command ;2522 char *fdisk ;2520 char *tmp = NULL; 2521 char *command = NULL; 2522 char *fdisk = NULL; 2523 2523 #ifdef __IA64__ 2524 2524 struct stat buf; 2525 2525 #endif 2526 2526 malloc_string(tmp); 2527 malloc_string(command);2528 malloc_string(fdisk);2529 2527 mr_msg(0, "Looking for partition table format type"); 2530 sprintf(fdisk, "/sbin/parted2fdisk");2528 mr_asprintf(&fdisk, "/sbin/parted2fdisk"); 2531 2529 mr_msg(1, "Using %s", fdisk); 2532 sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive); 2530 mr_asprintf(&command, "%s -l %s | grep 'EFI GPT'", fdisk, drive); 2531 mr_free(fdisk); 2532 2533 2533 strcpy(tmp, call_program_and_get_last_line_of_output(command)); 2534 mr_free(command); 2535 2534 2536 if (strstr(tmp, "GPT") == NULL) { 2535 2537 strcpy(output, "MBR"); … … 2538 2540 } 2539 2541 mr_msg(0, "Found %s partition table format type", output); 2540 mr_free(command);2541 2542 mr_free(tmp); 2542 mr_free(fdisk); 2543 return (output); 2543 return(output); 2544 2544 } 2545 2545 -
branches/stable/tools/quality
r1080 r1129 49 49 echo " " 50 50 echo "Splint: " 51 find . -name '*.c' -o -name '*.h' | xargs splint +posixlib -Dlinux 51 find . -name '*.c' -o -name '*.h' | xargs splint +posixlib -Dlinux -I$TOOLHOME/../mondo/src/include 52 52 53 53 rm -f /tmp/mondo.quality
Note:
See TracChangeset
for help on using the changeset viewer.