Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/modutils/lsmod.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 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/modutils/lsmod.c

    r2725 r3232  
    99 */
    1010
    11 //applet:IF_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_DROP))
     11//applet:IF_LSMOD(APPLET(lsmod, BB_DIR_SBIN, BB_SUID_DROP))
    1212
    1313//usage:#if !ENABLE_MODPROBE_SMALL
     
    8888            // or comma-separated list ended by comma
    8989            // so trimming the trailing char is just what we need!
    90             token[3][strlen(token[3])-1] = '\0';
     90            if (token[3][0])
     91                token[3][strlen(token[3]) - 1] = '\0';
    9192# if ENABLE_UNICODE_SUPPORT
    9293            {
Note: See TracChangeset for help on using the changeset viewer.