#include <common/compat/string.hpp>
#include <common/error.hpp>
#include <common/format.hpp>
#include <common/compat/string.hpp>
#include <common/error.hpp>
#include <common/format.hpp>
- sprintf(uuid_str, LTTNG_UUID_FMT, LTTNG_UUID_FMT_VALUES(uuid));
+ snprintf(uuid_str, LTTNG_UUID_STR_LEN, LTTNG_UUID_FMT, LTTNG_UUID_FMT_VALUES(uuid));