Ticket #30: avahi-64bit.patch

File avahi-64bit.patch, 326 bytes (added by Stanislav Brabec <sbrabec@…>, 6 years ago)

avahi-64bit.patch does not fix the problem, but fixes obvious bug. You may decide to make the structure totally opaque including its size to prevent possible problems in future.

  • avahi-compat-libdns_sd/dns_sd.h

     
    13001300 * Note: Represents a DNS-SD TXT record. 
    13011301 */ 
    13021302 
    1303 typedef struct _TXTRecordRef_t { char privatedata[16]; } TXTRecordRef; 
     1303typedef struct _TXTRecordRef_t { char privatedata[4*sizeof(void*)]; } TXTRecordRef; 
    13041304 
    13051305 
    13061306/* TXTRecordCreate()