Ignore:
Timestamp:
May 15, 2009, 4:56:31 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Use new libmr.a in build process
  • Use mr_strcat to fix a memory allocation bug when mountlist contains lots of references unavailable at restore time, creating a error when memory is statically allocated (more usage is expected now).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondorestore.c

    r2202 r2209  
    2323
    2424extern void twenty_seconds_til_yikes(void);
     25
     26/* We don't have a cleanup function yet */
     27void (*mr_cleanup)(void) = NULL;
    2528
    2629/* Reference to global bkpinfo */
     
    776779    bool boot_loader_installed = FALSE;
    777780  /** malloc **/
    778     char tmp[MAX_STR_LEN], tmpA[MAX_STR_LEN], tmpB[MAX_STR_LEN],
    779         tmpC[MAX_STR_LEN];
     781    char tmp[MAX_STR_LEN];
     782    char *tmpA;
     783    char *tmpB;
     784    char *tmpC;
    780785
    781786    assert(bkpinfo != NULL);
    782787    assert(mountlist != NULL);
    783788    assert(raidlist != NULL);
     789
     790    asprintf(&tmpA, "%s", "xxxxxxxxx");
     791    asprintf(&tmpB, "%s", "xxxxxxxxx");
     792    asprintf(&tmpC, "%s", "xxxxxxxxx");
    784793
    785794    log_msg(2, "nuke_mode --- starting");
Note: See TracChangeset for help on using the changeset viewer.