Ignore:
Timestamp:
May 5, 2009, 3:56:10 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix lack of formating (discovered by the new Mandriva build process, and adopted here as well as it's good practice).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-cli.c

    r2134 r2190  
    395395      "fdisk -l %s 2>/dev/null|grep -E \"^/dev/\"|awk '{printf(\"%%s \", $1)}END{print \"\"}'", dsf);
    396396    log_msg(4, "Executing: %s", command);
    397     asprintf(&partition_list, call_program_and_get_last_line_of_output(command));
     397    asprintf(&partition_list, "%s", call_program_and_get_last_line_of_output(command));
    398398    paranoid_free(command);
    399399    log_msg(4, "Partition list for %s: %s", dsf, partition_list);
     
    498498                      VG, VG);
    499499                    log_msg(4, "  Running: %s", command);
    500                     asprintf(&mount_list, call_program_and_get_last_line_of_output(command));
     500                    asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command));
    501501                    paranoid_free(command);
    502502                    log_msg(4, "  VG %s mount_list: %s", VG, mount_list);
     
    519519                        "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'");
    520520                    log_msg (5, "Running: %s", command);
    521                     asprintf(&mount_list, call_program_and_get_last_line_of_output(command));
     521                    asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command));
    522522                    paranoid_free(command);
    523523                    log_msg(4, "  Software raid device list: %s", mount_list);   
     
    571571         "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'");
    572572        log_msg (5, "  Running: %s", command);
    573         asprintf(&mount_list, call_program_and_get_last_line_of_output(command));
     573        asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command));
    574574        paranoid_free(command);
    575575        log_msg(4, "  Software raid device list: %s", mount_list);   
     
    756756        }
    757757       
    758         asprintf(&tmp1, flag_val['I']);
     758        asprintf(&tmp1, "%s", flag_val['I']);
    759759        p = tmp1;
    760760        q = tmp1;
     
    10551055            strcat(bkpinfo->exclude_paths, " ");
    10561056        }
    1057         asprintf(&tmp1, flag_val['E']);
     1057        asprintf(&tmp1, "%s", flag_val['E']);
    10581058
    10591059        p = tmp1;
Note: See TracChangeset for help on using the changeset viewer.