chiark / gitweb /
uaudio: newer compiler spotted a short memcpy
[disorder] / lib / uaudio-rtp.c
index 71354205ff998c8ba8560076baa57ea2d57604fe..b41bdda5366a56f4b9e04b91da489e5c8ae32267 100644 (file)
@@ -485,7 +485,7 @@ int rtp_add_recipient(const struct sockaddr_storage *sa) {
     rc = -1;
   else {
     r = xmalloc(sizeof *r);
-    memcpy(&r->sa, sa, sizeof sa);
+    memcpy(&r->sa, sa, sizeof *sa);
     r->next = rtp_recipient_list;
     rtp_recipient_list = r;
     rc = 0;