Ignore:
Timestamp:
Dec 6, 2013, 3:40:47 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix mondoarchive which now works in text mode. GUI mode still not working and crashing on first update for backup. Needs more

investigation in newt-specific.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-fork.c

    r3195 r3205  
    5151    assert_string_is_neither_NULL_nor_zerolength(call);
    5252    if ((fin = popen(call, "r"))) {
    53         for (mr_getline(tmp, fin); !feof(fin); mr_getline(tmp, fin)) {
     53        while (!feof(fin)) {
     54            mr_getline(tmp, fin);
    5455            if (strlen(tmp) > 1) {
    5556                strcpy(result, tmp);
     
    6263    }
    6364    strip_spaces(result);
    64     mr_free(tmp);
    6565    return(result);
    6666}
Note: See TracChangeset for help on using the changeset viewer.