VirtualBox

Ignore:
Timestamp:
Aug 12, 2022 11:28:29 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Skip leading whitespace in the strtoxx and atoi functions. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/nocrt-strtoull.cpp

    r96059 r96162  
    4343#if LLONG_BIT == 64
    4444    uint64_t uValue = 0;
    45     int rc = RTStrToUInt64Ex(psz, ppszNext, (unsigned)iBase, &uValue);
     45    int rc = RTStrToUInt64Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &uValue);
    4646#else
    4747# error "Unsupported LLONG_BIT value"
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