]> git.meshlink.io Git - catta/blobdiff - avahi-core/resolve-address.c
NEWS update
[catta] / avahi-core / resolve-address.c
index c9aae0c2dbf3d0c41b52e7236022881052423509..a278beebbb6c99d7938d6f7dd38395c7db9173dc 100644 (file)
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 #include <avahi-common/error.h>
@@ -203,7 +205,7 @@ AvahiSAddressResolver *avahi_s_address_resolver_new(
         return NULL;
     }
 
-    avahi_reverse_lookup_name(n, sizeof(n), address);
+    avahi_reverse_lookup_name(address, n, sizeof(n));
 
     if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR))) {
         avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY);