From: Mathieu Desnoyers Date: Fri, 22 Mar 2013 16:24:07 +0000 (-0400) Subject: Fix: ustctl_recv_register_event pointer mixup X-Git-Tag: v2.2.0-rc1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=111198c20e792773b4c7e2e95a3fe8e5cb95d144;p=lttng-ust.git Fix: ustctl_recv_register_event pointer mixup Was causing some event names to appear as "" in metadata. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 375b4db5..0361f184 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -1578,7 +1578,7 @@ int ustctl_recv_register_event(int sock, goto signature_error; } /* Enforce end of string */ - signature[signature_len - 1] = '\0'; + a_sign[signature_len - 1] = '\0'; /* recv fields */ if (fields_len) {