VirtualBox

Ignore:
Timestamp:
Sep 11, 2013 2:05:43 PM (11 years ago)
Author:
vboxsync
Message:

VBoxNetDhcp::init: temporary com::Utf8Str object is destructed at the
end of the statement, leaving pszLo2Off dangling - give it proper
lifetime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r48414 r48430  
    403403                char *pszTerm;
    404404                uint32_t u32Off;
    405                 const char *pszLo2Off = com::Utf8Str(strs[i]).c_str();
     405                com::Utf8Str strLo2Off(strs[i]);
     406                const char *pszLo2Off = strLo2Off.c_str();
    406407
    407408                RT_ZERO(aszAddr);
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