aboutsummaryrefslogtreecommitdiffstats
path: root/trace-split.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-split.c')
-rw-r--r--trace-split.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/trace-split.c b/trace-split.c
index a75554e..d137255 100644
--- a/trace-split.c
+++ b/trace-split.c
@@ -138,9 +138,8 @@ static int write_record(struct tracecmd_input *handle,
138 index = 4; 138 index = 4;
139 139
140 if (!len) { 140 if (!len) {
141 len = record->size / 4; 141 len = record->size + 4;
142 len += 4; 142 *(unsigned *)ptr = __data2host4(pevent, len);
143 memcpy(ptr, &len, 4);
144 ptr += 4; 143 ptr += 4;
145 index += 4; 144 index += 4;
146 } 145 }