VirtualBox

Changeset 13554 in vbox


Ignore:
Timestamp:
Oct 24, 2008 12:50:39 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38420
Message:

ConsoleImpl2: polish.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r13552 r13554  
    19291929         * We only care about keys starting with "VBoxInternal/"
    19301930         */
    1931         Utf8Str strExtraDataKeyUtf8 = Utf8Str(strExtraDataKey);
     1931        Utf8Str strExtraDataKeyUtf8(strExtraDataKey);
    19321932        char *pszExtraDataKey = (char *)strExtraDataKeyUtf8.raw();
    1933         if (strncmp(pszExtraDataKey, "VBoxInternal/", 13) != 0)
     1933        if (strncmp(pszExtraDataKey, "VBoxInternal/", sizeof("VBoxInternal/") - 1) != 0)
    19341934            continue;
    1935         pszExtraDataKey += 13;
     1935        pszExtraDataKey += sizeof("VBoxInternal/") - 1;
    19361936
    19371937        /*
     
    19791979         * already done above.
    19801980         */
    1981         Utf8Str strCFGMValueUtf8 = Utf8Str(strExtraDataValue);
     1981        Utf8Str strCFGMValueUtf8(strExtraDataValue);
    19821982        const char *pszCFGMValue = strCFGMValueUtf8.raw();
    19831983        if (    pszCFGMValue
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette