VirtualBox

Changeset 44366 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jan 25, 2013 11:03:51 AM (12 years ago)
Author:
vboxsync
Message:

Runtime/strformatnum: fixed condition, found by Parfait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformatnum.cpp

    r39083 r44366  
    5050        char szTmp[64];
    5151        cchRet = RTStrFormatNumber(szTmp, u8Value, uiBase, cchWidth, cchPrecision, fFlags);
    52         if ((size_t)cchRet <= cbBuf)
     52        if ((size_t)cchRet < cbBuf)
    5353            memcpy(pszBuf, szTmp, cchRet + 1);
    5454        else
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