From f4caf7f5220970ac597d9d24106f65160d1dc86f Mon Sep 17 00:00:00 2001 From: kpl Date: Sat, 27 Apr 2013 11:17:46 -0700 Subject: [PATCH] cmUdpPort.c:Fixed bug in cmUdpAddrToString(). --- cmUdpPort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmUdpPort.c b/cmUdpPort.c index 199cbbc..fa36d9d 100644 --- a/cmUdpPort.c +++ b/cmUdpPort.c @@ -553,7 +553,7 @@ const cmChar_t* cmUdpAddrToString( cmUdpH_t h, const struct sockaddr_in* addr ) _cmUdpClear_errno(); - if( inet_ntop(AF_INET, addr, p->ntopBuf, INET_ADDRSTRLEN) == NULL) + if( inet_ntop(AF_INET, &(addr->sin_addr), p->ntopBuf, INET_ADDRSTRLEN) == NULL) { cmErrSysMsg(&p->err,kNtoPFailUdpRC,errno, "Network address to string conversion failed." ); return NULL;