Ignore:
Timestamp:
Aug 18, 2009, 3:25:29 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3342@localhost: bruno | 2009-08-14 00:46:51 +0200

  • Another round of strcpy suppressions
  • find_home_of_exe() now allocates memory which has to be freed by the caller
  • Supress useless sz_last_suffix()
  • mr_getline now has the same interface as the other mr_mem functions
  • valgrind and compiler warnings fixes
File:
1 edited

Legend:

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

    r2330 r2331  
    6060    char tmp = NULL;
    6161    char *device = NULL;
    62     char mountpoint[MAX_STR_LEN];
    6362
    6463    char *flaws_str = NULL;
     
    104103                continue;
    105104            }
    106             strcpy(mountpoint, mountlist->el[pos].mountpoint);
    107105            /* is it too big? */
    108106            if (curr_part_no > 'h') {
     
    186184
    187185        device = build_partition_name(drive, curr_part_no);
    188         strcpy(mountpoint, mountlist->el[pos].mountpoint);
    189186        if (pos > 0 && !npos) {
    190187            /* gap in the partition list? */
     
    271268                    continue;
    272269                }
    273                 strcpy(mountpoint, mountlist->el[pos].mountpoint);
    274270                /* is it too big? */
    275271                if (curr_part_no > 'h') {
Note: See TracChangeset for help on using the changeset viewer.