Commit 5ba30f7b authored by Peter Hutterer's avatar Peter Hutterer

tools: add missing toffset copy from src to dest while duplicating

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 50991bd0
...@@ -119,6 +119,7 @@ tap_data_duplicate_sorted(const struct tap_data *src, ...@@ -119,6 +119,7 @@ tap_data_duplicate_sorted(const struct tap_data *src,
assert(src->count > 0); assert(src->count > 0);
dest->count = src->count; dest->count = src->count;
dest->toffset = src->toffset;
dest->touches_sz = dest->count; dest->touches_sz = dest->count;
dest->touches = zalloc(dest->count * sizeof(*dest->touches)); dest->touches = zalloc(dest->count * sizeof(*dest->touches));
memcpy(dest->touches, memcpy(dest->touches,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment