Changeset 2232 in MondoRescue


Ignore:
Timestamp:
Jun 19, 2009, 6:04:13 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3126@localhost: bruno | 2009-06-18 20:04:26 +0200
Adds a NUL char after doing strncpy to avoid potential issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-mountlist.c

    r2230 r2232  
    687687        if (j == noof_drives) {
    688688            strcpy(drivelist->el[noof_drives++].device, truncdrive);
     689            drivelist->el[noof_drives++].device[63] = '\0';
    689690        }
    690691        paranoid_free(drive);
Note: See TracChangeset for help on using the changeset viewer.