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 <>
parent 50991bd0
......@@ -119,6 +119,7 @@ tap_data_duplicate_sorted(const struct tap_data *src,
assert(src->count > 0);
dest->count = src->count;
dest->toffset = src->toffset;
dest->touches_sz = dest->count;
dest->touches = zalloc(dest->count * sizeof(*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