Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 2, 2010, 12:02:02 AM (14 years ago)
Author:
adrfried
Message:

longer ip adresses for ServerInformation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/libraries/network/packet/ServerInformation.cc

    r7163 r7320  
    4949      // Save Server Round Trip Time
    5050      this->serverRTT_ = event->peer->roundTripTime;
    51       // Save Server IP
    52       char* serverIP = new char[16];
    53       enet_address_get_host_ip(&event->peer->address, serverIP, 16);
     51      // Save Server IP, leave some space for scope ID
     52      char* serverIP = new char[64];
     53      enet_address_get_host_ip(&event->peer->address, serverIP, 64);
    5454      this->serverIP_ = std::string(serverIP);
    5555      // Save ACK
Note: See TracChangeset for help on using the changeset viewer.