Parcourir la source

cmUdpPort.c:Fixed bug in cmUdpAddrToString().

master
kpl il y a 11 ans
Parent
révision
f4caf7f522
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      cmUdpPort.c

+ 1
- 1
cmUdpPort.c Voir le fichier

@@ -553,7 +553,7 @@ const cmChar_t* cmUdpAddrToString( cmUdpH_t h, const struct sockaddr_in* addr )
553 553
 
554 554
   _cmUdpClear_errno();
555 555
   
556
-  if( inet_ntop(AF_INET, addr,  p->ntopBuf, INET_ADDRSTRLEN) == NULL)
556
+  if( inet_ntop(AF_INET, &(addr->sin_addr),  p->ntopBuf, INET_ADDRSTRLEN) == NULL)
557 557
   {
558 558
     cmErrSysMsg(&p->err,kNtoPFailUdpRC,errno, "Network address to string conversion failed." );
559 559
     return NULL;

Chargement…
Annuler
Enregistrer