X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/blobdiff_plain/c97cc707f7cb01f53d02868f8794153718eece3b..HEAD:/sap.c diff --git a/sap.c b/sap.c index 654e8ac..da1d959 100644 --- a/sap.c +++ b/sap.c @@ -204,7 +204,7 @@ char *get_url_from_sap(char *service) if (sap_addrtype) { struct in6_addr in6addr; - memcpy(in6addr.in6_u.u6_addr8, sender_address, 16); + memcpy(in6addr.s6_addr, sender_address, 16); if (!(sdpinfo->host = (char*)inet_ntop(AF_INET6, &in6addr, hostbuf, INET6_ADDRSTRLEN))) { perror("inet_ntop"); continue;