Changeset 1217


Ignore:
Timestamp:
Feb 27, 2007, 2:08:10 PM (13 years ago)
Author:
bruno
Message:

Fixing another valgrind bug for mr_strip_spaces (order matters :-)

Location:
branches/stable/mondo/src
Files:
2 edited

Legend:

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

    r1214 r1217  
    374374    run_program_and_log_output("uname -a", 5);
    375375    run_program_and_log_output("cat /etc/*-release", 5);
    376     run_program_and_log_output("cat /etc/*issue*", 5);
    377376    sprintf(g_tmpfs_mountpt, "%s/tmpfs", bkpinfo->tmpdir);
    378377    mr_asprintf(&command, "mkdir -p %s", g_tmpfs_mountpt);
  • branches/stable/mondo/src/lib/mr_str.c

    r1215 r1217  
    145145
    146146    /* Skip final spaces and special chars */
    147     for (i = (int)strlen(in_out) - 1; in_out[i] <= ' ' && i >= 0 ; i--);
     147    for (i = (int)strlen(in_out) - 1; i >= 0  && in_out[i] <= ' '; i--);
    148148
    149149    /* The string now ends after that char */
Note: See TracChangeset for help on using the changeset viewer.