Changeset 18503 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 29, 2009 2:35:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp
r18119 r18503 249 249 memcpy(pvBuf, tmp16, cTmp16Len * sizeof(*tmp16)); 250 250 if (pcbActualSize) 251 *pcbActualSize = cTmp16Len * sizeof(*tmp16);251 *pcbActualSize = (uint32_t)(cTmp16Len * sizeof(*tmp16)); 252 252 253 253 out: … … 277 277 case VHD_PLATFORM_CODE_WI2R: 278 278 /* Update plain relative name. */ 279 cb = strlen(pszFilename);280 if (cb > cbMaxLen) 279 cb = (uint32_t)strlen(pszFilename); 280 if (cb > cbMaxLen) /** @todo r=bird: shoudln't this be cb >= cbMaxLen, or rather strlen() + 1? I don't dare update this without testing. */ 281 281 { 282 282 rc = VERR_FILENAME_TOO_LONG; … … 291 291 if (RT_FAILURE(rc)) 292 292 goto out; 293 pLocator->u32DataLength = RT_H2BE_U32( strlen((char *)pvBuf));293 pLocator->u32DataLength = RT_H2BE_U32((uint32_t)strlen((const char *)pvBuf)); 294 294 break; 295 295 case VHD_PLATFORM_CODE_W2RU:
Note:
See TracChangeset
for help on using the changeset viewer.