Changeset 1129 in MondoRescue


Ignore:
Timestamp:
Feb 10, 2007, 11:42:54 AM (17 years ago)
Author:
Bruno Cornec
Message:

Always typo

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-devices.c

    r1128 r1129  
    15211521            }
    15221522            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)) {
    15241524                    log_to_screen(_("User has chosen not to backup the PC"));
    15251525                    finish(1);
     
    15351535                    bkpinfo->backup_media_string);
    15361536
    1537             if (!popup_and_get_string("Size", comment, sz_size)) {
     1537            if (!popup_and_get_string("Size", comment, sz_size, 5)) {
    15381538                log_to_screen(_("User has chosen not to backup the PC"));
    15391539                finish(1);
     
    15711571                        bkpinfo->backup_media_string);
    15721572                if (!popup_and_get_string
    1573                     (_("Device?"), comment, bkpinfo->media_device)) {
     1573                    (_("Device?"), comment, bkpinfo->media_device, MAX_STR_LEN / 4)) {
    15741574                    log_to_screen(_("User has chosen not to backup the PC"));
    15751575                    finish(1);
     
    25182518{
    25192519    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;
    25232523#ifdef __IA64__
    25242524    struct stat buf;
    25252525#endif
    25262526    malloc_string(tmp);
    2527     malloc_string(command);
    2528     malloc_string(fdisk);
    25292527    mr_msg(0, "Looking for partition table format type");
    2530     sprintf(fdisk, "/sbin/parted2fdisk");
     2528    mr_asprintf(&fdisk, "/sbin/parted2fdisk");
    25312529    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
    25332533    strcpy(tmp, call_program_and_get_last_line_of_output(command));
     2534    mr_free(command);
     2535
    25342536    if (strstr(tmp, "GPT") == NULL) {
    25352537        strcpy(output, "MBR");
     
    25382540    }
    25392541    mr_msg(0, "Found %s partition table format type", output);
    2540     mr_free(command);
    25412542    mr_free(tmp);
    2542     mr_free(fdisk);
    2543     return (output);
     2543    return(output);
    25442544}
    25452545
  • branches/stable/tools/quality

    r1080 r1129  
    4949echo " "
    5050echo "Splint: "
    51 find . -name '*.c' -o -name '*.h' | xargs splint +posixlib -Dlinux
     51find . -name '*.c' -o -name '*.h' | xargs splint +posixlib -Dlinux -I$TOOLHOME/../mondo/src/include
    5252
    5353rm -f /tmp/mondo.quality
Note: See TracChangeset for help on using the changeset viewer.