Ticket #11977: mythtv_fix_hdhr_ioctl.patch

File mythtv_fix_hdhr_ioctl.patch, 553 bytes (added by david.madsen@…, 8 years ago)

patch for ioctl fix in libhdhomerun

  • mythtv/external/libhdhomerun/hdhomerun_sock_posix.c

    diff --git a/mythtv/external/libhdhomerun/hdhomerun_sock_posix.c b/mythtv/external/libhdhomerun/hdhomerun_sock_posix.c
    index 74dcd7c..a1433c9 100644
    a b int hdhomerun_local_ip_info(struct hdhomerun_local_ip_info_t ip_info_list[], int 
    101101        char *end = ifc.ifc_buf + ifc.ifc_len;
    102102
    103103        int count = 0;
    104         while (ptr <= end) {
     104        while (ptr < end) {
    105105                struct ifreq *ifr = (struct ifreq *)ptr;
    106106                ptr += _SIZEOF_ADDR_IFREQ(*ifr);
    107107