diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-14 22:36:05 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-14 22:36:05 +0000 |
commit | a964e813a1d5fc7942b43ae75a44677cb3815b0e (patch) | |
tree | f3153b42017a5f6ccb7edeedc3cb6318de47388c | |
parent | 47698b83fdca802c1d806ddd983c3ca6b0c9d6da (diff) | |
download | ffmpeg-a964e813a1d5fc7942b43ae75a44677cb3815b0e.tar.gz |
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
-rw-r--r-- | libavformat/os_support.c | 2 |
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; } |