fix getting irc hostname

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-12-16 10:21:32 -05:00
parent fdd0788581
commit f9593aea16
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ _server_name_get(const char *ip)
struct hostent *hent;
struct in_addr addr;
if (!inet_aton(ip, &addr)) return strdup(ip);
if ((hent =
gethostbyaddr((char *)&(addr.s_addr), sizeof(addr.s_addr), AF_INET)))
{