VirtualBox

Changeset 46489 in vbox


Ignore:
Timestamp:
Jun 11, 2013 3:24:29 AM (11 years ago)
Author:
vboxsync
Message:

rtGetOptSearchLong: when seraching standard options, check
RTGETOPT_FLAG_ICASE on the standard option definition, not on pOpt
(that is already pointing past the valid range too).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r45356 r46489  
    233233        for (uint32_t i = 0; i < RT_ELEMENTS(g_aStdOptions); i++)
    234234            if (   !strcmp(pszOption, g_aStdOptions[i].pszLong)
    235                 || (   pOpt->fFlags & RTGETOPT_FLAG_ICASE
     235                || (   g_aStdOptions[i].fFlags & RTGETOPT_FLAG_ICASE
    236236                    && !RTStrICmp(pszOption, g_aStdOptions[i].pszLong)))
    237237                return &g_aStdOptions[i];
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