Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/libbb/find_root_device.c

    r2725 r3232  
    3030    int len, rem;
    3131
     32    len = strlen(ap->devpath);
     33    rem = DEVNAME_MAX-2 - len;
     34    if (rem <= 0)
     35        return NULL;
     36
    3237    dir = opendir(ap->devpath);
    3338    if (!dir)
    3439        return NULL;
    3540
    36     len = strlen(ap->devpath);
    37     rem = DEVNAME_MAX-2 - len;
    38     if (rem <= 0)
    39         return NULL;
    4041    ap->devpath[len++] = '/';
    4142
Note: See TracChangeset for help on using the changeset viewer.