summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-14 22:36:05 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-14 22:36:05 +0000
commita964e813a1d5fc7942b43ae75a44677cb3815b0e (patch)
treef3153b42017a5f6ccb7edeedc3cb6318de47388c /libavformat/os_support.c
parent47698b83fdca802c1d806ddd983c3ca6b0c9d6da (diff)
use h_addr_list[0] instead of h_addr as this is the posix hostent field name
Originally committed as revision 14768 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 3357595590..434d4b8693 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -68,7 +68,7 @@ int resolve_host(struct in_addr *sin_addr, const char *hostname)
hp = gethostbyname(hostname);
if (!hp)
return -1;
- memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
+ memcpy(sin_addr, hp->h_addr_list[0], sizeof(struct in_addr));
}
return 0;
}