Changeset 121 in MondoRescue for trunk/mondo/mondo/common/newt-specific.c


Ignore:
Timestamp:
Nov 10, 2005, 3:24:47 AM (18 years ago)
Author:
bcornec
Message:

small memory bugs fixed in newt-specific.c and libmondo-string.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/newt-specific.c

    r94 r121  
    13791379        for (filelist->entries = 0; filelist->entries <= ARBITRARY_MAXIMUM;
    13801380             filelist->entries++) {
    1381           god_i_hate_gotos:
    13821381            if (feof(fin)) {
    13831382                break;
     
    13861385            i = (int) strlen(tmp);
    13871386            if (i < 2) {
    1388                 goto god_i_hate_gotos;
     1387                if (feof(fin)) {
     1388                    break;
     1389                }
    13891390            }
    13901391            if (tmp[i - 1] < 32) {
     
    13921393            }
    13931394            if (i < 2) {
    1394                 goto god_i_hate_gotos;
     1395                if (feof(fin)) {
     1396                    break;
     1397                }
    13951398            }
    13961399            if (!does_file_exist(tmp)) {
    1397                 goto god_i_hate_gotos;
     1400                if (feof(fin)) {
     1401                    break;
     1402                }
    13981403            }
    13991404            filelist->el[filelist->entries].severity =
Note: See TracChangeset for help on using the changeset viewer.