Ignore:
Timestamp:
Jan 17, 2008, 12:08:40 AM (14 years ago)
Author:
charles
Message:

fix byte ordering of the port in tr_peerIoAddrStr()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r4609 r4717  
    243243{
    244244    static char buf[512];
    245     snprintf( buf, sizeof(buf), "%s:%u", inet_ntoa( *addr ), (unsigned int)port );
     245    snprintf( buf, sizeof(buf), "%s:%u", inet_ntoa( *addr ), ntohs( port ) );
    246246    return buf;
    247247}
Note: See TracChangeset for help on using the changeset viewer.