Changeset 1140 in MondoRescue for branches/stable/mondo/src/common


Ignore:
Timestamp:
Feb 12, 2007, 2:05:43 AM (17 years ago)
Author:
Bruno Cornec
Message:

Try to fix some valgrind reports (note that this version still doesn't work)

Location:
branches/stable/mondo/src/common
Files:
4 edited

Legend:

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

    r1137 r1140  
    10931093            ("NFS mount doesn't have a colon in it, e.g. 192.168.1.4:/home/nfs");
    10941094    }
    1095     *(p++) = '\0';
     1095    *p = '\0';
     1096    p++;
    10961097    strcpy(nfs_server_ipaddr, tmp);
    10971098    mr_free(tmp);
  • branches/stable/mondo/src/common/libmondo-fork.c

    r1139 r1140  
    235235    fin = fopen("/tmp/mondo-run-prog-thing.tmp", "r");
    236236    if (fin) {
    237         for (mr_getline(&incoming, &n, fin); !feof(fin);
    238              mr_getline(&incoming, &n, fin)) {
     237        for (mr_getline(&incoming, &n, fin); !feof(fin); mr_getline(&incoming, &n, fin)) {
    239238            /* patch by Heiko Schlittermann */
    240239            p = incoming;
  • branches/stable/mondo/src/common/libmondo-string.c

    r1116 r1140  
    771771    p = tmp;
    772772    while (*p != '\0') {
    773         in_out[i] = *(p++);
     773        in_out[i] = *p;
     774        p++;
    774775        in_out[i + 1] = '\0';
    775776        if (in_out[i] < 32 && i > 0) {
     
    797798    in_out[i] = '\0';
    798799    mr_free(tmp);
    799 /*  for(i=strlen(in_out); i>0 && in_out[i-1]<=32; i--) {in_out[i-1]='\0';} */
    800800}
    801801
  • branches/stable/mondo/src/common/libmondo-tools.c

    r1123 r1140  
    893893    /*@ buffers ************ */
    894894    char tmp[MAX_STR_LEN];
    895     //  char command[MAX_STR_LEN];
    896895
    897896    /*@ int's *************** */
     
    900899
    901900
    902     mvaddstr_and_log_it(g_currentY, 0,
    903                         "Checking sanity of your Linux distribution");
     901    mvaddstr_and_log_it(g_currentY, 0, "Checking sanity of your Linux distribution");
    904902#ifndef __FreeBSD__
    905903    if (system("which mkfs.vfat &> /dev/null")
Note: See TracChangeset for help on using the changeset viewer.