Changeset 3238 for branches/3.2


Ignore:
Timestamp:
Jan 5, 2014, 1:35:22 PM (6 years ago)
Author:
bruno
Message:
  • Add "%s" in 2 mr_asprintf usages toavoid any problem (quality report)
Location:
branches/3.2/mondo/src/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-filelist.c

    r3205 r3238  
    379379    if (filelist->ch == '\0') {
    380380        if (!(i++ % 1111)) {
    381             percentage =
    382                 (int) (i * 100 / g_original_noof_lines_in_filelist);
     381            percentage = (int) (i * 100 / g_original_noof_lines_in_filelist);
    383382            update_evalcall_form(percentage);
    384383
  • branches/3.2/mondo/src/common/libmondo-files.c

    r3206 r3238  
    323323    assert_string_is_neither_NULL_nor_zerolength(fname);
    324324    mr_asprintf(command, "which %s 2> /dev/null", fname);
    325     mr_asprintf(incoming, call_program_and_get_last_line_of_output(command));
     325    mr_asprintf(incoming, "%s", call_program_and_get_last_line_of_output(command));
    326326    mr_free(command);
    327327
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3225 r3238  
    11881188    mr_free(tmp);
    11891189
    1190     mr_asprintf(tmp, call_program_and_get_last_line_of_output(command));
     1190    mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command));
    11911191    mr_free(command);
    11921192
Note: See TracChangeset for help on using the changeset viewer.