port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.c
index a65b2ecc881fcd5928e969a353a35bae9a3f58bb..68230d5ef440f2e2f1159b53b739781412fd7544 100644 (file)
@@ -440,7 +440,7 @@ int set_bound_from_param(struct trimmer_comp *trimmer_comp,
                 * Just convert it to a temporary string to handle
                 * everything the same way.
                 */
-               sprintf(tmp_arg, "%" PRId64, value);
+               snprintf(tmp_arg, sizeof(tmp_arg), "%" PRId64, value);
                arg = tmp_arg;
        } else {
                BT_ASSERT(bt_value_is_string(param));
This page took 0.045563 seconds and 4 git commands to generate.