Ticket #30: avahi-compat-txt-buffer-size.patch

File avahi-compat-txt-buffer-size.patch, 311 bytes (added by Stanislav Brabec <sbrabec@…>, 6 years ago)

avahi-compat-txt-buffer-size.patch part 2 of the fix from JP Rosevear (jpr at novell _dot_ com)

  • avahi-compat-libdns_sd/txt.c

     
    6060 
    6161    if ((t = avahi_new(TXTRecordInternal, 1))) { 
    6262        t->buffer = buffer; 
    63         t->max_size = length; 
     63        t->max_size = buffer ? length : (size_t)0; 
    6464        t->size = 0; 
    6565        t->malloc_buffer = NULL; 
    6666    }