Changeset 2209 in MondoRescue for branches/2.2.9/mondo/src/lib/mr_msg.c


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/lib/mr_msg.c

    r1226 r2209  
    4343    int res = 0;
    4444
    45     asprintf(&mr_logfile,logfile);
     45    if (asprintf(&mr_logfile, "%s", logfile) == -1) {
     46        fprintf(stderr,"Unable to alloc memory\n");
     47        fprintf(stderr,"Logging desactivated\n");
     48        mr_msg_close();
     49    }
    4650    if ((fout = fopen(mr_logfile, "w")) == NULL) {
    4751        fprintf(stderr,"Unable to write to %s\n",mr_logfile);
Note: See TracChangeset for help on using the changeset viewer.