VirtualBox

Changeset 60164 in vbox


Ignore:
Timestamp:
Mar 23, 2016 1:21:20 PM (9 years ago)
Author:
vboxsync
Message:

USB: RT_C_IS_CNTRL returns true for the terminator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/usblib.h

    r60163 r60164  
    138138        {
    139139            char ch = psz[offSrc];
    140             if (RT_UNLIKELY(RT_C_IS_CNTRL(ch)))
     140            if (RT_UNLIKELY(RT_C_IS_CNTRL(ch) && ch != '\0'))
    141141            {
    142142                /* Found a control character! Replace tab by space and remove all others. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette