VirtualBox

Changeset 48813 in vbox


Ignore:
Timestamp:
Oct 2, 2013 9:36:59 AM (11 years ago)
Author:
vboxsync
Message:

Runtime/solaris: nit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/mp-solaris.cpp

    r48812 r48813  
    436436                    kstat_named_t *pStat = (kstat_named_t *)kstat_data_lookup(g_papCpuInfo[idCpu], (char *)"state");
    437437                    Assert(pStat->data_type == KSTAT_DATA_CHAR);
    438                     if(   !RTStrNCmp(pStat->value.c, PS_ONLINE, sizeof(PS_ONLINE))
    439                        || !RTStrNCmp(pStat->value.c, PS_NOINTR, sizeof(PS_NOINTR)))
     438                    if(   !RTStrNCmp(pStat->value.c, PS_ONLINE, sizeof(PS_ONLINE) - 1)
     439                       || !RTStrNCmp(pStat->value.c, PS_NOINTR, sizeof(PS_NOINTR) - 1))
    440440                    {
    441441                        uOnlineCores++;
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