Changeset 49113 in vbox for trunk/src/VBox/NetworkServices/DHCP
- Timestamp:
- Oct 15, 2013 9:36:22 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r49063 r49113 399 399 for (i = 0; i < count_strs; ++i) 400 400 { 401 char aszAddr[17];401 char szAddr[17]; 402 402 RTNETADDRIPV4 ip4addr; 403 403 char *pszTerm; … … 406 406 const char *pszLo2Off = strLo2Off.c_str(); 407 407 408 RT_ZERO( aszAddr);408 RT_ZERO(szAddr); 409 409 410 410 pszTerm = RTStrStr(pszLo2Off, "="); … … 413 413 && (pszTerm - pszLo2Off) <= INET_ADDRSTRLEN) 414 414 { 415 memcpy( aszAddr, pszLo2Off, (pszTerm - pszLo2Off));416 int rc = RTNetStrToIPv4Addr( aszAddr, &ip4addr);415 memcpy(szAddr, pszLo2Off, (pszTerm - pszLo2Off)); 416 int rc = RTNetStrToIPv4Addr(szAddr, &ip4addr); 417 417 if (RT_SUCCESS(rc)) 418 418 {
Note:
See TracChangeset
for help on using the changeset viewer.