]> sigrok.org Git - libsigrok.git/commitdiff
session: allocate correct amount of memory in sr_packet_copy
authorWolfram Sang <redacted>
Sun, 21 Feb 2016 09:06:10 +0000 (10:06 +0100)
committerUwe Hermann <redacted>
Sun, 28 Feb 2016 17:21:18 +0000 (18:21 +0100)
We want the size of the struct, not of a pointer to the struct. And to
be absolutely future proof, dereference the pointer we are assigning the
memory to (not the one we are copying the data from). Found by Coverity,
CID 50858.

Signed-off-by: Wolfram Sang <redacted>

No differences found