{\r
channel_t *channel = client_itr->channel;\r
\r
+ char* clientAddressString = Util_clientAddressToString( client_itr );\r
+\r
strncpy( shmptr->client[cc].username, client_itr->username, 120 );\r
- strncpy( shmptr->client[cc].ipaddress, Util_clientAddressToString( client_itr ), INET6_ADDRSTRLEN - 1 );\r
+ strncpy( shmptr->client[cc].ipaddress, clientAddressString, INET6_ADDRSTRLEN - 1 );\r
strncpy( shmptr->client[cc].channel, channel->name, 120 );\r
\r
strncpy( shmptr->client[cc].os, client_itr->os, 120 );\r
shmptr->client[cc].UDPPackets = client_itr->UDPPackets;\r
shmptr->client[cc].TCPPackets = client_itr->TCPPackets;\r
\r
+ free(clientAddressString);\r
}\r
cc++;\r
}\r