port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14
[babeltrace.git] / src / common / uuid.c
index a0af2bc04dc75b57238cfda7d88ed000f92bbe32..b2457602c7b57c841fbc92b614691b7644c1b21b 100644 (file)
@@ -57,7 +57,7 @@ void bt_uuid_to_str(const bt_uuid_t uuid_in, char *str_out)
        BT_ASSERT_DBG(uuid_in);
        BT_ASSERT_DBG(str_out);
 
-       sprintf(str_out, BT_UUID_FMT, BT_UUID_FMT_VALUES(uuid_in));
+       snprintf(str_out, BT_UUID_STR_LEN + 1, BT_UUID_FMT, BT_UUID_FMT_VALUES(uuid_in));
 }
 
 BT_HIDDEN
This page took 0.025619 seconds and 4 git commands to generate.