VirtualBox

Changeset 19068 in vbox


Ignore:
Timestamp:
Apr 21, 2009 11:47:42 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManageList.cpp: Fixed buffer overflow error printing the host time. Enabled the printing of system wide memory stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r18466 r19068  
    384384            RTTIMESPEC timeSpec;
    385385            RTTimeSpecSetMilli(&timeSpec, uTCTime);
    386             char pszTime[30] = {0};
    387             RTTimeSpecToString(&timeSpec, pszTime, sizeof(pszTime));
    388             RTPrintf("Host time: %s\n", pszTime);
     386            char szTime[32] = {0};
     387            RTTimeSpecToString(&timeSpec, szTime, sizeof(szTime));
     388            RTPrintf("Host time: %s\n", szTime);
    389389
    390390            ULONG processorOnlineCount = 0;
     
    409409            }
    410410
    411 #if 0 /* not yet implemented in Main */
    412411            ULONG memorySize = 0;
    413412            CHECK_ERROR (Host, COMGETTER(MemorySize)(&memorySize));
     
    418417            RTPrintf("Memory available: %lu MByte\n", memoryAvailable);
    419418
     419#if 0 /* not yet implemented in Main */
    420420            Bstr operatingSystem;
    421421            CHECK_ERROR (Host, COMGETTER(OperatingSystem)(operatingSystem.asOutParam()));
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