From 5d449caec638cafe4627b22d3e2ad7c57e1d5c89 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Thu, 24 Feb 2011 19:00:33 -0500 Subject: trace-cmd: Fix writing options data to file The address of the options data is written to the file instead of the actual data. Signed-off-by: Steven Rostedt --- trace-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace-output.c b/trace-output.c index 26b0197..f43aa65 100644 --- a/trace-output.c +++ b/trace-output.c @@ -863,7 +863,7 @@ static int add_options(struct tracecmd_output *handle) if (do_write_check(handle, &handle->options[i].size, 4)) return -1; - if (do_write_check(handle, &handle->options[i].data, + if (do_write_check(handle, handle->options[i].data, handle->options[i].size)) return -1; } -- cgit v1.2.2