projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Packet metadata read should substract header size
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index adff1eb7ce86cd0a1e158fd49777175f454d3633..dc7baf5a891621f726df12a37cc472926208b8aa 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-508,7
+508,7
@@
int ctf_open_trace_metadata_packet_read(struct ctf_trace *td, FILE *in,
return -EINVAL;
}
- toread =
header.content_size / CHAR_BIT
;
+ toread =
(header.content_size / CHAR_BIT) - header_sizeof(header)
;
for (;;) {
readlen = fread(buf, sizeof(char), min(sizeof(buf), toread), in);
This page took
0.023849 seconds
and
4
git commands to generate.