diff options
-rw-r--r-- | parse-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-events.c b/parse-events.c index 5503a18..13c41aa 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -3066,7 +3066,7 @@ static void print_str_arg(struct trace_seq *s, void *data, int size, | |||
3066 | die("field %s not found", arg->field.name); | 3066 | die("field %s not found", arg->field.name); |
3067 | } | 3067 | } |
3068 | /* Zero sized fields, mean the rest of the data */ | 3068 | /* Zero sized fields, mean the rest of the data */ |
3069 | len = arg->field.field->size ? : size; | 3069 | len = arg->field.field->size ? : size - arg->field.field->offset; |
3070 | 3070 | ||
3071 | /* | 3071 | /* |
3072 | * Some events pass in pointers. If this is not an array | 3072 | * Some events pass in pointers. If this is not an array |