Changeset 7580 in vbox for trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
- Timestamp:
- Mar 26, 2008 3:22:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r7576 r7580 39 39 /** Maximum encoded string size (including NUL) we allow for VMDK images. 40 40 * Deliberately not set high to avoid running out of descriptor space. */ 41 #define VMDK_ENC RYPTED_COMMENT_MAX 102441 #define VMDK_ENCODED_COMMENT_MAX 1024 42 42 43 43 /** VMDK descriptor DDB entry for PCHS cylinders. */ … … 460 460 else 461 461 { 462 RTStrFree((char *)(void *)pVmdkFile->pszFilename); 462 463 RTMemFree(pVmdkFile); 463 464 *pFile = NIL_RTFILE; … … 545 546 static char *vmdkEncodeString(const char *psz) 546 547 { 547 char szEnc[VMDK_ENC RYPTED_COMMENT_MAX + 3];548 char szEnc[VMDK_ENCODED_COMMENT_MAX + 3]; 548 549 char *pszDst = szEnc; 549 550 … … 571 572 else 572 573 pszDst = RTStrPutCp(pszDst, Cp); 573 if (pszDst - szEnc >= VMDK_ENC RYPTED_COMMENT_MAX - 1)574 if (pszDst - szEnc >= VMDK_ENCODED_COMMENT_MAX - 1) 574 575 { 575 576 pszDst = pszDstPrev;
Note:
See TracChangeset
for help on using the changeset viewer.