From 8db078dccf54f56edbcbd20cff2430b5e7540801 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 12 Sep 2016 18:58:50 -0400 Subject: [PATCH] Fix: compat: -ust suffix sprintf error handling Signed-off-by: Mathieu Desnoyers --- liblttng-ust/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1