Ignore:
Timestamp:
01/17/19 14:33:40 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
c8171e5
Parents:
d4eed70
Message:

Add more meta functions, cleanup function names, DLLEXPORT all meta-api prototypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapng.c

    rd4eed70 r66ffac4  
    23422342
    23432343                result->items = malloc(sizeof(libtrace_meta_item_t));
    2344                 result->items->option = option;
    2345                 result->items->len = len;
    2346                 result->items->data_type = 0;
    2347                 result->items->data = calloc(1, len);
     2344                result->items[result->num-1].option = option;
     2345                result->items[result->num-1].len = len;
     2346                result->items[result->num-1].data_type = 0;
     2347                result->items[result->num-1].data = calloc(1, len);
    23482348
    23492349                memcpy(result->items->data, ptr+sizeof(struct pcapng_optheader), len);
Note: See TracChangeset for help on using the changeset viewer.