Changeset 84050 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Apr 28, 2020 2:28:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatnum.cpp
r82968 r84050 80 80 char szTmp[64]; 81 81 cchRet = RTStrFormatNumber(szTmp, u16Value, uiBase, cchWidth, cchPrecision, fFlags); 82 if ((size_t)cchRet < =cbBuf)82 if ((size_t)cchRet < cbBuf) 83 83 memcpy(pszBuf, szTmp, cchRet + 1); 84 84 else … … 109 109 char szTmp[64]; 110 110 cchRet = RTStrFormatNumber(szTmp, u32Value, uiBase, cchWidth, cchPrecision, fFlags); 111 if ((size_t)cchRet < =cbBuf)111 if ((size_t)cchRet < cbBuf) 112 112 memcpy(pszBuf, szTmp, cchRet + 1); 113 113 else … … 138 138 char szTmp[64]; 139 139 cchRet = RTStrFormatNumber(szTmp, u64Value, uiBase, cchWidth, cchPrecision, fFlags); 140 if ((size_t)cchRet < =cbBuf)140 if ((size_t)cchRet < cbBuf) 141 141 memcpy(pszBuf, szTmp, cchRet + 1); 142 142 else … … 324 324 */ 325 325 ssize_t cchRet = pszTmp - &szTmp[0]; 326 if ((size_t)cchRet < =cbBuf)326 if ((size_t)cchRet < cbBuf) 327 327 memcpy(pszBuf, szTmp, cchRet + 1); 328 328 else
Note:
See TracChangeset
for help on using the changeset viewer.