Changeset 11532


Ignore:
Timestamp:
Jul 15, 2019, 12:01:48 PM (5 days ago)
Author:
nautilus7
Message:

[dvbapi] Small fix to previous commit

Thanks to "lnj" again!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-dvbapi.c

    r11531 r11532  
    814814        {
    815815            ca_descr_data_t *cadesc_data = (ca_descr_data_t *) data;
     816            uint32_t length = cadesc_data->length;
    816817            if(client_proto_version >= 1)
    817818            {
     
    825826            memcpy(&packet[size + 8], &cadesc_data->data_type, 4);
    826827            memcpy(&packet[size + 12], &cadesc_data->length, 4);
    827             memcpy(&packet[size + 16], cadesc_data->data, cadesc_data->length);
    828             size += 16 + cadesc_data->length;
     828            memcpy(&packet[size + 16], cadesc_data->data, length);
     829            size += 16 + length;
    829830            break;
    830831        }
Note: See TracChangeset for help on using the changeset viewer.