Ignore:
Timestamp:
Apr 29, 2011, 3:39:28 PM (13 years ago)
Author:
Bruno Cornec
Message:

r2180@localhost (orig r2179): bruno | 2009-04-25 02:46:24 +0200

  • Fix a bug on array size reported by SuSE build system (Stephan Lauffer lauffer_at_ph-freiburg.de)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/mondorestore/mondo-prep.c

    r2785 r2808  
    288288    log_msg(1, "OK, rewound i-want-my-lvm. Doing funky stuff...");
    289289    rewind(fin);
    290     for (fgets(incoming, 512, fin); !feof(fin); fgets(incoming, 512, fin)) {
     290    for (fgets(incoming, MAX_STR_LEN - 1, fin); !feof(fin); fgets(incoming, MAX_STR_LEN - 1, fin)) {
    291291        fgetpos(fin, &orig_pos);
    292292        if (incoming[0] != '#') {
     
    301301        if ((p = strstr(incoming, "vgcreate"))) {
    302302// include next line(s) if they end in /dev (cos we've got a broken i-want-my-lvm)
    303             for (fgets(tmp, 512, fin); !feof(fin); fgets(tmp, 512, fin)) {
     303            for (fgets(tmp, MAX_STR_LEN - 1, fin); !feof(fin); fgets(tmp, MAX_STR_LEN - 1, fin)) {
    304304                if (tmp[0] == '#') {
    305305                    fsetpos(fin, &orig_pos);
Note: See TracChangeset for help on using the changeset viewer.