Changeset 3235 in MondoRescue for branches


Ignore:
Timestamp:
Jan 3, 2014, 5:44:01 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Revert dynamic memory allocation for blurb variables as they are used in a subroutine in an non-compatible way (Fix one of the core dumped seen at restore time)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/newt-specific.c

    r3208 r3235  
    651651        assert(b3 != NULL);
    652652
    653         mr_asprintf(blurb1, "%s", b1);
    654         mr_asprintf(blurb2, "%s", b2);
    655         mr_asprintf(blurb3, "%s", b3);
     653        malloc_string(blurb1);
     654        malloc_string(blurb2);
     655        malloc_string(blurb3);
     656        strcpy(blurb1, b1);
     657        strcpy(blurb2, b2);
     658        strcpy(blurb3, b3);
    656659
    657660        strcpy(b1c, b1);
     
    687690        update_progress_form_full(blurb1, blurb2, blurb3);
    688691        paranoid_free(b1c);
    689         mr_free(blurb1);
    690         mr_free(blurb2);
    691         mr_free(blurb3);
     692        paranoid_free(blurb1);
     693        paranoid_free(blurb2);
     694        paranoid_free(blurb3);
    692695    }
    693696
Note: See TracChangeset for help on using the changeset viewer.