X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=a8dcdd11f468d086d8e0ded84f0a308f3fa074fe;hp=0325e505c505fab3dab2bc666fa7caec40822aa4;hb=6dd26587e926671cdec2545b7d3db74cbd6a7cd8;hpb=f12e3556cad1baa0af6993ae0072c19b317cbc34 diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 0325e505c..a8dcdd11f 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -30,7 +30,6 @@ static char *opt_session_name; static char *opt_viewer; static char *opt_trace_path; static const char *babeltrace_bin = CONFIG_BABELTRACE_BIN; -//static const char *lttv_gui_bin = CONFIG_LTTV_GUI_BIN; #ifdef LTTNG_EMBED_HELP static const char help_msg[] = @@ -56,7 +55,6 @@ static struct poptOption long_options[] = { * This is needed for each viewer since we are using execvp(). */ static const char *babeltrace_opts[] = { "babeltrace" }; -//static const char *lttv_gui_opts[] = { "lttv-gui", "-t", }; /* * Type is also use as the index in the viewers array. So please, make sure @@ -64,8 +62,7 @@ static const char *babeltrace_opts[] = { "babeltrace" }; */ enum viewer_type { VIEWER_BABELTRACE = 0, - VIEWER_LTTV_GUI = 1, - VIEWER_USER_DEFINED = 2, + VIEWER_USER_DEFINED = 1, }; /* @@ -77,7 +74,6 @@ static struct viewers { enum viewer_type type; } viewers[] = { { "babeltrace", VIEWER_BABELTRACE }, - { "lttv-gui", VIEWER_LTTV_GUI }, { NULL, VIEWER_USER_DEFINED }, }; @@ -188,7 +184,7 @@ static char **alloc_argv_from_local_opts(const char **opts, size_t opts_len, goto error; } - memcpy(argv, opts, size); + memcpy(argv, opts, sizeof(char *) * opts_len); if (session_live_mode) { argv[opts_len] = "-i";