From: Mathieu Desnoyers Date: Mon, 12 Sep 2016 22:58:50 +0000 (-0400) Subject: Fix: compat: -ust suffix sprintf error handling X-Git-Tag: v2.9.0-rc1~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8db078dccf54f56edbcbd20cff2430b5e7540801;p=lttng-ust.git Fix: compat: -ust suffix sprintf error handling Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/compat.h b/liblttng-ust/compat.h index cd83b46b..003b480a 100644 --- a/liblttng-ust/compat.h +++ b/liblttng-ust/compat.h @@ -110,7 +110,7 @@ int lttng_ust_setustprocname(void) } ret = sprintf(name + len, LTTNG_UST_PROCNAME_SUFFIX); - if (ret) { + if (ret != strlen(LTTNG_UST_PROCNAME_SUFFIX)) { goto error; }