Changeset 4588 for trunk/console

Show
Ignore:
Timestamp:
08/30/06 04:44:15 (2 years ago)
Author:
erijo
Message:

Fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console_print.cpp

    r4574 r4588  
    581581  char szPort[32]; 
    582582  char szRealIp[32]; 
    583   const unsigned long nRealIp = u->RealIp(); 
    584   strcpy(szRealIp, inet_ntoa_r(*(struct in_addr *)&nRealIp, buf)); 
     583  strcpy(szRealIp, ip_ntoa(u->RealIp(), buf)); 
    585584  time_t nLast = u->LastOnline(); 
    586585  time_t nOnSince = u->OnlineSince();