Changeset 100108 in vbox for trunk/src/VBox/ImageMounter/vboximg-mount
- Timestamp:
- Jun 7, 2023 8:05:13 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ImageMounter/vboximg-mount/SelfSizingTable.h
r98103 r100108 270 270 { 271 271 uint8_t colWidth = pColDesc->cbWidestDataInCol; 272 char colHdr[colWidth + 1], *pszColHdr = (char *)colHdr;272 char *pszColHdr = new char[colWidth + 1]; 273 273 switch (pColDesc->alignment) 274 274 { … … 288 288 RTPrintf(ANSI_RESET); 289 289 pColDesc = pColDesc->next; 290 delete[] pszColHdr; 290 291 } 291 292 RTPrintf("\n"); … … 300 301 { pColDesc = pColData->pColDesc; 301 302 uint8_t colWidth = pColDesc->cbWidestDataInCol; 302 char aCell[colWidth + 1];303 char *aCell = new char[colWidth + 1]; 303 304 switch (pColDesc->alignment) 304 305 { … … 316 317 RTPrintf("%s%*s", aCell, cbPad, " "); 317 318 pColData = pColData->next; 319 delete[] aCell; 318 320 } 319 321 RTPrintf("\n");
Note:
See TracChangeset
for help on using the changeset viewer.