VirtualBox

Changeset 48434 in vbox for trunk/src/VBox/NetworkServices


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

VBoxNetLwipNAT::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/NAT/VBoxNetLwipNAT.cpp

    r48405 r48434  
    911911                char *pszTerm;
    912912                uint32_t u32Off;
    913                 const char *pszLo2Off = com::Utf8Str(strs[i]).c_str();
    914        
     913                com::Utf8Str strLo2Off(strs[i]);
     914                const char *pszLo2Off = strLo2Off.c_str();
     915
    915916                RT_ZERO(aszAddr);
    916917               
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